{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/help/issues/962","repository_url":"https://api.github.com/repos/nodejs/help","labels_url":"https://api.github.com/repos/nodejs/help/issues/962/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/help/issues/962/comments","events_url":"https://api.github.com/repos/nodejs/help/issues/962/events","html_url":"https://github.com/nodejs/help/issues/962","id":272976088,"number":962,"title":"npm from 8.9.1 binary distribution doesnt work","user":{"login":"sandrotosi","id":346648,"avatar_url":"https://avatars2.githubusercontent.com/u/346648?v=4","gravatar_id":"","url":"https://api.github.com/users/sandrotosi","html_url":"https://github.com/sandrotosi","followers_url":"https://api.github.com/users/sandrotosi/followers","following_url":"https://api.github.com/users/sandrotosi/following{/other_user}","gists_url":"https://api.github.com/users/sandrotosi/gists{/gist_id}","starred_url":"https://api.github.com/users/sandrotosi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandrotosi/subscriptions","organizations_url":"https://api.github.com/users/sandrotosi/orgs","repos_url":"https://api.github.com/users/sandrotosi/repos","events_url":"https://api.github.com/users/sandrotosi/events{/privacy}","received_events_url":"https://api.github.com/users/sandrotosi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-10T15:52:34Z","updated_at":"2017-11-17T18:43:57Z","closed_at":null,"author_association":"NONE","body":"<!-- Please remove this line and fill the template -->\r\n\r\n* **Node.js Version**: 8.9.1\r\n* **OS**: debian jessie\r\n* **Scope (install, code, runtime, meta, other?)**: install\r\n* **Module (and version) (if relevant)**: n/a\r\n\r\n\r\nHello,\r\ni downloaded the linux x86_64 binary release for 8.9.1 and installed in `/usr/local/nodejs_8.9.1/`.\r\n\r\nwhen i run node from there it works fine:\r\n\r\n```\r\n/usr/local/nodejs_8.9.1/bin/node --version\r\nv8.9.1\r\n```\r\n\r\nbut if i try to run npm it fails with:\r\n\r\n```\r\n# /usr/local/nodejs_8.9.1/bin/npm --version\r\n\r\nmodule.js:340\r\n    throw err;\r\n          ^\r\nError: Cannot find module '../lib/utils/unsupported.js'\r\n    at Function.Module._resolveFilename (module.js:338:15)\r\n    at Function.Module._load (module.js:280:25)\r\n    at Module.require (module.js:364:17)\r\n    at require (module.js:380:17)\r\n    at /usr/local/nodejs_8.9.1/bin/npm:19:21\r\n    at Object.<anonymous> (/usr/local/nodejs_8.9.1/bin/npm:92:3)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n```\r\n\r\ni suspected this is because the shebang is set to `/usr/bin/env node` (which points to the system-installed node, instead of this one) but even change npm shebang to 8.9.1 node i got the same error:\r\n\r\n```\r\n# head -1 /usr/local/nodejs_8.9.1/bin/npm\r\n#!/usr/local/nodejs_8.9.1/bin/node\r\n\r\n# /usr/local/nodejs_8.9.1/bin/npm --version\r\nmodule.js:538\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module '../lib/utils/unsupported.js'\r\n    at Function.Module._resolveFilename (module.js:536:15)\r\n    at Function.Module._load (module.js:466:25)\r\n    at Module.require (module.js:579:17)\r\n    at require (internal/module.js:11:18)\r\n    at /usr/local/nodejs_8.9.1/bin/npm:19:21\r\n    at Object.<anonymous> (/usr/local/nodejs_8.9.1/bin/npm:92:3)\r\n    at Module._compile (module.js:635:30)\r\n    at Object.Module._extensions..js (module.js:646:10)\r\n    at Module.load (module.js:554:32)\r\n    at tryModuleLoad (module.js:497:12)\r\n```\r\n\r\nwhat am i doing wrong? how can i fix it?\r\n\r\nthanks!"},"comment":{"url":"https://api.github.com/repos/nodejs/help/issues/comments/345328841","html_url":"https://github.com/nodejs/help/issues/962#issuecomment-345328841","issue_url":"https://api.github.com/repos/nodejs/help/issues/962","id":345328841,"user":{"login":"radoslavpetranov","id":2715732,"avatar_url":"https://avatars0.githubusercontent.com/u/2715732?v=4","gravatar_id":"","url":"https://api.github.com/users/radoslavpetranov","html_url":"https://github.com/radoslavpetranov","followers_url":"https://api.github.com/users/radoslavpetranov/followers","following_url":"https://api.github.com/users/radoslavpetranov/following{/other_user}","gists_url":"https://api.github.com/users/radoslavpetranov/gists{/gist_id}","starred_url":"https://api.github.com/users/radoslavpetranov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radoslavpetranov/subscriptions","organizations_url":"https://api.github.com/users/radoslavpetranov/orgs","repos_url":"https://api.github.com/users/radoslavpetranov/repos","events_url":"https://api.github.com/users/radoslavpetranov/events{/privacy}","received_events_url":"https://api.github.com/users/radoslavpetranov/received_events","type":"User","site_admin":false},"created_at":"2017-11-17T18:43:57Z","updated_at":"2017-11-17T18:43:57Z","author_association":"NONE","body":"Having the same issue after upgrading from node 6.11 to node 8.9.1 on a windows machine."}}
{"actor":{"display_login":"radoslavpetranov"}}