{"action":"closed","issue":{"url":"https://api.github.com/repos/webpack-contrib/webpack-defaults/issues/51","repository_url":"https://api.github.com/repos/webpack-contrib/webpack-defaults","labels_url":"https://api.github.com/repos/webpack-contrib/webpack-defaults/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/webpack-contrib/webpack-defaults/issues/51/comments","events_url":"https://api.github.com/repos/webpack-contrib/webpack-defaults/issues/51/events","html_url":"https://github.com/webpack-contrib/webpack-defaults/issues/51","id":224393233,"number":51,"title":"npm scripts doesn't work on windows ($2)","user":{"login":"sokra","id":1365881,"avatar_url":"https://avatars3.githubusercontent.com/u/1365881?v=3","gravatar_id":"","url":"https://api.github.com/users/sokra","html_url":"https://github.com/sokra","followers_url":"https://api.github.com/users/sokra/followers","following_url":"https://api.github.com/users/sokra/following{/other_user}","gists_url":"https://api.github.com/users/sokra/gists{/gist_id}","starred_url":"https://api.github.com/users/sokra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokra/subscriptions","organizations_url":"https://api.github.com/users/sokra/orgs","repos_url":"https://api.github.com/users/sokra/repos","events_url":"https://api.github.com/users/sokra/events{/privacy}","received_events_url":"https://api.github.com/users/sokra/received_events","type":"User","site_admin":false},"labels":[{"id":584651538,"url":"https://api.github.com/repos/webpack-contrib/webpack-defaults/labels/effort:%201%20(my%20first%20commit)","name":"effort: 1 (my first commit)","color":"fef2c0","default":false},{"id":584651850,"url":"https://api.github.com/repos/webpack-contrib/webpack-defaults/labels/priority:%201%20(critical)","name":"priority: 1 (critical)","color":"f9d0c4","default":false},{"id":584651848,"url":"https://api.github.com/repos/webpack-contrib/webpack-defaults/labels/severity:%203%20(broken)","name":"severity: 3 (broken)","color":"d4c5f9","default":false},{"id":527547943,"url":"https://api.github.com/repos/webpack-contrib/webpack-defaults/labels/type:%20bug","name":"type: bug","color":"FC4349","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-26T08:58:11Z","updated_at":"2017-04-26T09:30:55Z","closed_at":"2017-04-26T09:30:55Z","body":"``` text\r\n> yarn run serve:dev src\r\n\r\nyarn run v0.21.3\r\n$ nodemon $2 --exec babel-node src\r\n[nodemon] 1.11.0\r\n[nodemon] to restart at any time, enter `rs`\r\n[nodemon] watching: *.*\r\n[nodemon] starting `babel-node $2 src`\r\nmodule.js:472\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module 'C:\\...\\my-loader\\$2'\r\n    at Function.Module._resolveFilename (module.js:470:15)\r\n    at Function.Module._load (module.js:418:25)\r\n    at Function.Module.runMain (module.js:605:10)\r\n    at Object.<anonymous> (C:\\...\\my-loader\\node_modules\\babel-cli\\lib\\_babel-node.js:154:22)\r\n    at Module._compile (module.js:571:32)\r\n    at Object.Module._extensions..js (module.js:580:10)\r\n    at Module.load (module.js:488:32)\r\n    at tryModuleLoad (module.js:447:12)\r\n    at Function.Module._load (module.js:439:3)\r\n    at Module.runMain (module.js:605:10)\r\n[nodemon] app crashed - waiting for file changes before starting...\r\n```\r\n\r\nThe `$2` in `\"serve:dev\": \"nodemon $2 --exec babel-node\",` is linux bash syntax and doesn't work on windows. Changing it to `\"serve:dev\": \"nodemon src --exec babel-node\",` works fine."}}
{"actor":{"display_login":"sapegin"}}