{"action":"created","issue":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/2148","repository_url":"https://api.github.com/repos/jspm/jspm-cli","labels_url":"https://api.github.com/repos/jspm/jspm-cli/issues/2148/labels{/name}","comments_url":"https://api.github.com/repos/jspm/jspm-cli/issues/2148/comments","events_url":"https://api.github.com/repos/jspm/jspm-cli/issues/2148/events","html_url":"https://github.com/jspm/jspm-cli/issues/2148","id":186506623,"number":2148,"title":"Error on any 'jspm' command: TypeError: Cannot read property 'startsWith' of undefined","user":{"login":"hancsu","id":2388264,"avatar_url":"https://avatars.githubusercontent.com/u/2388264?v=3","gravatar_id":"","url":"https://api.github.com/users/hancsu","html_url":"https://github.com/hancsu","followers_url":"https://api.github.com/users/hancsu/followers","following_url":"https://api.github.com/users/hancsu/following{/other_user}","gists_url":"https://api.github.com/users/hancsu/gists{/gist_id}","starred_url":"https://api.github.com/users/hancsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hancsu/subscriptions","organizations_url":"https://api.github.com/users/hancsu/orgs","repos_url":"https://api.github.com/users/hancsu/repos","events_url":"https://api.github.com/users/hancsu/events{/privacy}","received_events_url":"https://api.github.com/users/hancsu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-01T10:52:58Z","updated_at":"2016-11-07T08:59:54Z","closed_at":null,"body":"After successfully installing JSPM through NPM;\r\n\r\n`npm install -g jspm`\r\n\r\nany attempt to run 'jspm' on the command line or 'jspm SOMECOMMAND' all lead to the same error:\r\n\r\n```\r\nC:\\some\\path> jspm\r\n\r\nC:\\Users\\USERNAME\\AppData\\Roaming\\npm\\node_modules\\jspm\\lib\\common.js:108\r\n    if (pjson.startsWith('\\uFEFF'))\r\n\r\nTypeError: Cannot read property 'startsWith' of undefined\r\n    at exports.readJSONSync (C:\\Users\\USERNAME\\AppData\\Roaming\\npm\\node_modules\\jspm\\lib\\common.js:108:12)\r\n    at Object.<anonymous> (C:\\Users\\USERNAME\\AppData\\Roaming\\npm\\node_modules\\jspm\\lib\\global-config.js:53:18)\r\n    at Module._compile (module.js:570:32)\r\n    at Object.Module._extensions..js (module.js:579:10)\r\n    at Module.load (module.js:487:32)\r\n    at tryModuleLoad (module.js:446:12)\r\n    at Function.Module._load (module.js:438:3)\r\n    at Module.require (module.js:497:17)\r\n    at require (internal/module.js:20:19)\r\n    at Object.<anonymous> (C:\\Users\\USERNAME\\AppData\\Roaming\\npm\\node_modules\\jspm\\lib\\registry.js:19:20)\r\n```\r\n\r\nor (another example):\r\n\r\n```\r\nC:\\some\\path> jspm registry config github\r\n\r\nC:\\Users\\USERNAME\\AppData\\Roaming\\npm\\node_modules\\jspm\\lib\\common.js:108\r\n    if (pjson.startsWith('\\uFEFF'))\r\n\r\nTypeError: Cannot read property 'startsWith' of undefined\r\n    at exports.readJSONSync (C:\\Users\\USERNAME\\AppData\\Roaming\\npm\\node_modules\\jspm\\lib\\common.js:108:12)\r\n    at Object.<anonymous> (C:\\Users\\USERNAME\\AppData\\Roaming\\npm\\node_modules\\jspm\\lib\\global-config.js:53:18)\r\n    at Module._compile (module.js:570:32)\r\n    at Object.Module._extensions..js (module.js:579:10)\r\n    at Module.load (module.js:487:32)\r\n    at tryModuleLoad (module.js:446:12)\r\n    at Function.Module._load (module.js:438:3)\r\n    at Module.require (module.js:497:17)\r\n    at require (internal/module.js:20:19)\r\n    at Object.<anonymous> (C:\\Users\\USERNAME\\AppData\\Roaming\\npm\\node_modules\\jspm\\lib\\registry.js:19:20)\r\n```\r\n\r\nIt's a fresh install of Node. Versions:\r\n\r\n```\r\n    C:\\some\\path> node -v\r\n    v6.9.1\r\n```\r\n\r\n```\r\n    C:\\some\\path> npm -v\r\n    3.10.9\r\n```\r\n\r\nLink to StackOverflow thread: http://stackoverflow.com/questions/40358356/jspm-error-on-any-jspm-command-typeerror-cannot-read-property-startswith-o\r\n\r\nEDIT: Out of interest I just tested out v0.10.0 and the 'jspm' command doesn't raise any error when run."},"comment":{"url":"https://api.github.com/repos/jspm/jspm-cli/issues/comments/258779847","html_url":"https://github.com/jspm/jspm-cli/issues/2148#issuecomment-258779847","issue_url":"https://api.github.com/repos/jspm/jspm-cli/issues/2148","id":258779847,"user":{"login":"hancsu","id":2388264,"avatar_url":"https://avatars.githubusercontent.com/u/2388264?v=3","gravatar_id":"","url":"https://api.github.com/users/hancsu","html_url":"https://github.com/hancsu","followers_url":"https://api.github.com/users/hancsu/followers","following_url":"https://api.github.com/users/hancsu/following{/other_user}","gists_url":"https://api.github.com/users/hancsu/gists{/gist_id}","starred_url":"https://api.github.com/users/hancsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hancsu/subscriptions","organizations_url":"https://api.github.com/users/hancsu/orgs","repos_url":"https://api.github.com/users/hancsu/repos","events_url":"https://api.github.com/users/hancsu/events{/privacy}","received_events_url":"https://api.github.com/users/hancsu/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T08:59:54Z","updated_at":"2016-11-07T08:59:54Z","body":"Yeah I've re-installed Node and JSPM a couple of times with different versions and still no change."}}
{"actor":{"display_login":"hancsu"}}