-
Notifications
You must be signed in to change notification settings - Fork 3k
Problem with NPM after upgrading #16542
Comments
Can't reproduce this with |
Also, do note that the |
Yes I know but it occurs on every "npm install" I literally can not install a package any more :/. |
When I install the latest stable version I get this: admin@REMC02PL1KRG3QP: ~/cio-editors Error: Cannot find module '../lib/utils/unsupported.js' |
Looks like your installation is busted now. Might wanna try this. |
Thanks for the help. After trying the above, I saw that there was some permission problem. I removed my local/lib/node_modules folder and re-installed node and evertying worked again. $ rm -rf /usr/local/lib/node_modules/ |
mac os: after doing "brew upgrade" & this error occurs. |
That problem happen too often on OSX/brew and each time deleting the global node_module dir, un/reinstall node works. |
Confirmed @Pieter-Jan fix is working. |
Removing the npm folder inside /usr/local/lib/node_modules/ and reinstalling node and npm did the trick |
Same for me. Had to remove node modules directory and reinstall. |
For windows user:
|
I figure remove everything you installed somewhat works, but this is of course undesirable/undoable in production environments. Moreover, it feels like complete overkill and not really a solution to the core of the problem. Does anybody actually know what's going on? I can't believe answers that recommend deleting everything are getting so many thumbs up. |
On a default install, the npm command/script is a symlink.
The problem seems to occur when this symlink is disturbed. For example, the error |
Hello,
I'm getting this issue after upgrade. Can not use "npm install" anymore:
$ npm install fs
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "fs"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! Cannot read property 'tunnel' of undefined
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /Users/admin/cio-editors/npm-debug.log
$ npm --version
3.10.8
$ node --version
v6.9.1
Here is the trace:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli 'fs',
1 verbose cli '-verbose' ]
2 info using npm@3.10.8
3 info using node@v6.9.1
4 verbose install initial load of /Users/admin/cio-editors/package.json
5 verbose readDependencies loading dependencies from /Users/admin/cio-editors/package.json
6 silly cache add args [ 'fs', null ]
7 verbose cache add spec fs
8 silly cache add parsed spec Result {
8 silly cache add raw: 'fs',
8 silly cache add scope: null,
8 silly cache add name: 'fs',
8 silly cache add rawSpec: '',
8 silly cache add spec: 'latest',
8 silly cache add type: 'tag' }
9 silly addNamed fs@latest
10 verbose addNamed "latest" is being treated as a dist-tag for fs
11 info addNameTag [ 'fs', 'latest' ]
12 silly mapToRegistry name fs
13 silly mapToRegistry using default registry
14 silly mapToRegistry registry https://registry.npmjs.org/
15 silly mapToRegistry uri https://registry.npmjs.org/fs
16 verbose addNameTag registry:https://registry.npmjs.org/fs not in flight; fetching
17 verbose request uri https://registry.npmjs.org/fs
18 verbose request no auth needed
19 info attempt registry request try #1 at 2:35:46 PM
20 verbose request id f15620a189e46530
21 http request GET https://registry.npmjs.org/fs
22 verbose stack TypeError: Cannot read property 'tunnel' of undefined
22 verbose stack at Tunnel.isEnabled (/usr/local/lib/node_modules/npm/node_modules/request/lib/tunnel.js:126:21)
22 verbose stack at Request.init (/usr/local/lib/node_modules/npm/node_modules/request/request.js:282:30)
22 verbose stack at new Request (/usr/local/lib/node_modules/npm/node_modules/request/request.js:129:8)
22 verbose stack at request (/usr/local/lib/node_modules/npm/node_modules/request/index.js:55:10)
22 verbose stack at CachingRegistryClient.makeRequest (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:149:13)
22 verbose stack at /usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:66:17
22 verbose stack at RetryOperation._fn (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/attempt.js:18:5)
22 verbose stack at RetryOperation.attempt (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/retry/lib/retry_operation.js:97:8)
22 verbose stack at CachingRegistryClient.attempt (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/attempt.js:11:13)
22 verbose stack at CachingRegistryClient.regRequest [as _request] (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:65:8)
23 verbose cwd /Users/admin/cio-editors
24 error Darwin 15.0.0
25 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "fs" "-verbose"
26 error node v6.9.1
27 error npm v3.10.8
28 error Cannot read property 'tunnel' of undefined
29 error If you need help, you may report this error at:
29 error https://github.com/npm/npm/issues
30 verbose exit [ 1, true ]
The text was updated successfully, but these errors were encountered: