{"action":"created","issue":{"url":"https://api.github.com/repos/Hashnode/mern-starter/issues/198","repository_url":"https://api.github.com/repos/Hashnode/mern-starter","labels_url":"https://api.github.com/repos/Hashnode/mern-starter/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/Hashnode/mern-starter/issues/198/comments","events_url":"https://api.github.com/repos/Hashnode/mern-starter/issues/198/events","html_url":"https://github.com/Hashnode/mern-starter/issues/198","id":164647229,"number":198,"title":"unable to test (win 10)","user":{"login":"ozkey","id":2411920,"avatar_url":"https://avatars.githubusercontent.com/u/2411920?v=3","gravatar_id":"","url":"https://api.github.com/users/ozkey","html_url":"https://github.com/ozkey","followers_url":"https://api.github.com/users/ozkey/followers","following_url":"https://api.github.com/users/ozkey/following{/other_user}","gists_url":"https://api.github.com/users/ozkey/gists{/gist_id}","starred_url":"https://api.github.com/users/ozkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozkey/subscriptions","organizations_url":"https://api.github.com/users/ozkey/orgs","repos_url":"https://api.github.com/users/ozkey/repos","events_url":"https://api.github.com/users/ozkey/events{/privacy}","received_events_url":"https://api.github.com/users/ozkey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-09T03:30:02Z","updated_at":"2016-07-12T15:02:28Z","closed_at":null,"body":"Created a fresh new app and was unable to run \"npm test\" (Windows 10)\r\n\r\n```\r\nmern init newAPP\r\ncd newApp\r\nnpm install\r\n```\r\n\r\nit looks like it tries to run a linux script in (\\node_modules\\.bin\\acorn)\r\n\r\nthe error:\r\n\r\n```\r\nD:\\development\\newAPP>npm test\r\n\r\n> mern-starter@2.0.0 test D:\\development\\newAPP\r\n> cross-env NODE_ENV=test PORT=8080 MONGO_URL=mongodb://localhost:27017/mern-test node_modules/.bin/nyc node --harmony-proxies node_modules/.bin/ava\r\n\r\nD:\\development\\newAPP\\node_modules\\.bin\\ava:2\r\nbasedir=$(dirname \"$(echo \"$0\" | sed -e 's,\\\\,/,g')\")\r\n          ^^^^^^^\r\n\r\nSyntaxError: missing ) after argument list\r\n    at exports.runInThisContext (vm.js:53:16)\r\n    at Module._compile (module.js:373:25)\r\n    at Module.replacementCompile (D:\\development\\newAPP\\node_modules\\nyc\\node_modules\\append-transform\\index.js:58:13)\r\n    at module.exports (D:\\development\\newAPP\\node_modules\\nyc\\node_modules\\default-require-extensions\\js.js:8:9)\r\n    at Object.<anonymous> (D:\\development\\newAPP\\node_modules\\nyc\\node_modules\\append-transform\\index.js:62:4)\r\n    at Module.load (module.js:343:32)\r\n    at Function.Module._load (module.js:300:12)\r\n    at Function.Module.runMain (module.js:441:10)\r\n    at Function.runMain (C:\\Users\\ozkey\\.node-spawn-wrap-3376-b97e9a32b699\\node:40:10)\r\n    at Object.<anonymous> (D:\\development\\newAPP\\node_modules\\nyc\\bin\\wrap.js:19:4)\r\n ----------|----------|----------|----------|----------|----------------|\r\nFile      |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |\r\n----------|----------|----------|----------|----------|----------------|\r\n----------|----------|----------|----------|----------|----------------|\r\nAll files |      100 |      100 |      100 |      100 |                |\r\n----------|----------|----------|----------|----------|----------------|\r\n\r\nnpm ERR! Test failed.  See above for more details.\r\n\r\nD:\\development\\newAPP>\r\n```"},"comment":{"url":"https://api.github.com/repos/Hashnode/mern-starter/issues/comments/232075920","html_url":"https://github.com/Hashnode/mern-starter/issues/198#issuecomment-232075920","issue_url":"https://api.github.com/repos/Hashnode/mern-starter/issues/198","id":232075920,"user":{"login":"brandon-arnold","id":7827691,"avatar_url":"https://avatars.githubusercontent.com/u/7827691?v=3","gravatar_id":"","url":"https://api.github.com/users/brandon-arnold","html_url":"https://github.com/brandon-arnold","followers_url":"https://api.github.com/users/brandon-arnold/followers","following_url":"https://api.github.com/users/brandon-arnold/following{/other_user}","gists_url":"https://api.github.com/users/brandon-arnold/gists{/gist_id}","starred_url":"https://api.github.com/users/brandon-arnold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandon-arnold/subscriptions","organizations_url":"https://api.github.com/users/brandon-arnold/orgs","repos_url":"https://api.github.com/users/brandon-arnold/repos","events_url":"https://api.github.com/users/brandon-arnold/events{/privacy}","received_events_url":"https://api.github.com/users/brandon-arnold/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T15:02:28Z","updated_at":"2016-07-12T15:02:28Z","body":"I should also mention that there was a resulting \"TypeError: callback is not a function\" from ```mongodb-prebuilt``` after I did this, which is a known issue with that package. I got it working as described [here](https://github.com/winfinit/mongodb-prebuilt/pull/27), but obviously this is sub-optimal."}}
{"actor":{"display_login":"brandon-arnold"}}