{"action":"created","issue":{"url":"https://api.github.com/repos/nodeschool/discussions/issues/2234","repository_url":"https://api.github.com/repos/nodeschool/discussions","labels_url":"https://api.github.com/repos/nodeschool/discussions/issues/2234/labels{/name}","comments_url":"https://api.github.com/repos/nodeschool/discussions/issues/2234/comments","events_url":"https://api.github.com/repos/nodeschool/discussions/issues/2234/events","html_url":"https://github.com/nodeschool/discussions/issues/2234","id":284060951,"number":2234,"title":"Core/Javascripting/1.Introduction","user":{"login":"AlexanderOpran","id":16990110,"avatar_url":"https://avatars0.githubusercontent.com/u/16990110?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexanderOpran","html_url":"https://github.com/AlexanderOpran","followers_url":"https://api.github.com/users/AlexanderOpran/followers","following_url":"https://api.github.com/users/AlexanderOpran/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderOpran/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderOpran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderOpran/subscriptions","organizations_url":"https://api.github.com/users/AlexanderOpran/orgs","repos_url":"https://api.github.com/users/AlexanderOpran/repos","events_url":"https://api.github.com/users/AlexanderOpran/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderOpran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-22T03:04:22Z","updated_at":"2017-12-23T17:47:19Z","closed_at":null,"author_association":"NONE","body":"On Windows 10, in PowerShell, you cannot create an empty file using the `type NUL > file.extension` command. \r\nThe only way for the javascripting verifiy command to ever be successful is to create an empty file using the `type NUL > file.extension` command from CommandPrompt only. This isn't mentioned anywhere in the guide (it just says on Windows).\r\nEven if you create an empty file with `$null > file.extension`, the validation fails and you can't even run it with `node file.extension`. The same applies when you create the file in a text editor or in an IDE.\r\n\r\n* node version: v9.3.0\r\n* npm version:  5.6.0\r\n* os: Microsoft Windows [Version 10.0.16299.125]\r\n\r\n### Error output when trying to verify a file that was not created in CommandPrompt using the `type NUL > file.extension `command.\r\n```\r\nSyntaxError: Invalid or unexpected token\r\n    at createScript (vm.js:80:10)\r\n    at Object.runInThisContext (vm.js:152:10)\r\n    at Module._compile (module.js:624:28)\r\n    at Object.Module._extensions..js (module.js:671:10)\r\n    at Module.load (module.js:573:32)\r\n    at tryModuleLoad (module.js:513:12)\r\n    at Function.Module._load (module.js:505:3)\r\n    at Function.Module.runMain (module.js:701:10)\r\n    at startup (bootstrap_node.js:194:16)\r\n    at bootstrap_node.js:618:3\r\n\r\n    at ChildProcess.exithandler (child_process.js:272:12)\r\n    at ChildProcess.emit (events.js:159:13)\r\n    at maybeClose (internal/child_process.js:943:16)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)\r\n  killed: false,\r\n  code: 1,\r\n  signal: null,\r\n```\r\n\r\n### My Code\r\n```js\r\n console.log('hello');\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/nodeschool/discussions/issues/comments/353739198","html_url":"https://github.com/nodeschool/discussions/issues/2234#issuecomment-353739198","issue_url":"https://api.github.com/repos/nodeschool/discussions/issues/2234","id":353739198,"user":{"login":"AlexanderOpran","id":16990110,"avatar_url":"https://avatars0.githubusercontent.com/u/16990110?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexanderOpran","html_url":"https://github.com/AlexanderOpran","followers_url":"https://api.github.com/users/AlexanderOpran/followers","following_url":"https://api.github.com/users/AlexanderOpran/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderOpran/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderOpran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderOpran/subscriptions","organizations_url":"https://api.github.com/users/AlexanderOpran/orgs","repos_url":"https://api.github.com/users/AlexanderOpran/repos","events_url":"https://api.github.com/users/AlexanderOpran/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderOpran/received_events","type":"User","site_admin":false},"created_at":"2017-12-23T17:47:19Z","updated_at":"2017-12-23T17:47:19Z","author_association":"NONE","body":"## Solution (For PowerShell)\r\nUse the following command when creating the empty file:\r\n`New-Item -Name file.extension -ItemType File\r\n`"}}
{"actor":{"display_login":"AlexanderOpran"}}