Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM doesn't work after doing node update #10

Open
captaineramirez opened this issue Mar 11, 2018 · 0 comments
Open

NPM doesn't work after doing node update #10

captaineramirez opened this issue Mar 11, 2018 · 0 comments

Comments

@captaineramirez
Copy link

Hello,

I've got npm errors after doing node update (old node version v4.3.2 and new node version v9.8.0)...

I did :

sudo npm cache clean -f
Result : npm WARN using --force I sure hope you know what you are doing.

sudo npm install -g n
Results : /usr/local/bin/n -> /usr/local/lib/node_modules/n/bin/n
n@2.1.8 /usr/local/lib/node_modules/n

sudo n latest
Result : noting

sudo npm install -g npm
Results :
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'internal/util/types'

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-03-11T16_20_31_472Z-debug.log

See bellow log file in /root/.npm/_logs/2018-03-11T16_20_31_472Z-debug.log

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 '-g',
1 verbose cli 'npm' ]
2 info using npm@5.6.0
3 info using node@v9.8.0
4 verbose npm-session f475018f85826308
5 verbose stack Error: Cannot find module 'internal/util/types'
5 verbose stack at Function.Module._resolveFilename (module.js:543:15)
5 verbose stack at Function.Module._load (module.js:470:25)
5 verbose stack at Module.require (module.js:593:17)
5 verbose stack at require (internal/module.js:11:18)
5 verbose stack at evalmachine.:31:26
5 verbose stack at Object. (/usr/local/lib/node_modules/npm/node_m$
5 verbose stack at Module._compile (module.js:649:30)
5 verbose stack at Object.Module._extensions..js (module.js:660:10)
5 verbose stack at Module.load (module.js:561:32)
5 verbose stack at tryModuleLoad (module.js:501:12)
5 verbose stack at Function.Module._load (module.js:493:3)
5 verbose stack at Module.require (module.js:593:17)
5 verbose stack at require (internal/module.js:11:18)
5 verbose stack at Object. (/usr/local/lib/node_modules/npm/node_m$
5 verbose stack at Module._compile (module.js:649:30)
5 verbose stack at Object.Module._extensions..js (module.js:660:10)
6 verbose cwd /home/pi
7 verbose Linux 4.9.35-v7+
8 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "npm"
9 verbose node v9.8.0
10 verbose npm v5.6.0
11 error code MODULE_NOT_FOUND
12 error Cannot find module 'internal/util/types'
13 verbose exit [ 1, true ]

Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant