{"action":"closed","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/1020","labels_url":"https://api.github.com/repos/webpack/webpack/issues/1020/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/1020/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/1020/events","html_url":"https://github.com/webpack/webpack/issues/1020","id":71564913,"number":1020,"title":"basdir=`dirname \"$0\"` error","user":{"login":"yccteam","id":6459899,"avatar_url":"https://avatars.githubusercontent.com/u/6459899?v=3","gravatar_id":"","url":"https://api.github.com/users/yccteam","html_url":"https://github.com/yccteam","followers_url":"https://api.github.com/users/yccteam/followers","following_url":"https://api.github.com/users/yccteam/following{/other_user}","gists_url":"https://api.github.com/users/yccteam/gists{/gist_id}","starred_url":"https://api.github.com/users/yccteam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yccteam/subscriptions","organizations_url":"https://api.github.com/users/yccteam/orgs","repos_url":"https://api.github.com/users/yccteam/repos","events_url":"https://api.github.com/users/yccteam/events{/privacy}","received_events_url":"https://api.github.com/users/yccteam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-28T11:40:23Z","updated_at":"2015-04-28T13:32:13Z","closed_at":"2015-04-28T13:32:13Z","body":"Hi,\r\nI'm trying to run webpack webserver.\r\nHere's the code:\r\n\r\n```\r\n#!/bin/sh\r\nbasedir=`dirname \"$0\"`\r\n\r\ncase `uname` in\r\n    *CYGWIN*) basedir=`cygpath -w \"$basedir\"`;;\r\nesac\r\n\r\nif [ -x \"$basedir/node\" ]; then\r\n  \"$basedir/node\"  \"$basedir/../webpack-dev-server/bin/webpack-dev-server.js\" \"$@\"\r\n  ret=$?\r\nelse \r\n  node  \"$basedir/../webpack-dev-server/bin/webpack-dev-server.js\" \"$@\"\r\n  ret=$?\r\nfi\r\nexit $ret\r\n```\r\n\r\nHere's the script line:\r\n```\"start\": \"node node_modules/.bin/webpack-dev-server --content-base app\"```\r\n\r\nAny idea why it gives me this error when running ```npm start```?\r\n\r\nHere's the error:\r\n```\r\nC:\\Users\\Yonk\\Documents\\gridApp\\node_modules\\.bin\\webpack-dev-server:2\r\nbasedir=`dirname \"$0\"`\r\n        ^\r\nSyntaxError: Unexpected token ILLEGAL\r\n    at exports.runInThisContext (vm.js:73:16)\r\n    at Module._compile (module.js:443:25)\r\n    at Object.Module._extensions..js (module.js:478:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Function.Module.runMain (module.js:501:10)\r\n    at startup (node.js:129:16)\r\n    at node.js:814:3\r\n```\r\n"}}