npm update failed

(Karlos) #1

Hi,

I’m working with Axway Appcelerator and i need update npm
Then i use
npm install npm@latest -g

but always the same error:

Error: ENAMETOOLONG: name too long, mkdir ‘/Users/carlos/(node:5186) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
(node:5186) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
(node:5186) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
/usr/local’
TypeError: Cannot read property ‘get’ of undefined
at errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:205:18)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:78:20
at cb (/usr/local/lib/node_modules/npm/lib/npm.js:228:22)
at /usr/local/lib/node_modules/npm/lib/npm.js:266:24
at /usr/local/lib/node_modules/npm/lib/config/core.js:83:7
at Array.forEach ()
at /usr/local/lib/node_modules/npm/lib/config/core.js:82:13
at f (/usr/local/lib/node_modules/npm/node_modules/once/once.js:25:25)
at afterExtras (/usr/local/lib/node_modules/npm/lib/config/core.js:173:20)
at /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53
/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:205
if (npm.config.get(‘json’)) {
^

TypeError: Cannot read property ‘get’ of undefined
at process.errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:205:18)
at process.emit (events.js:189:13)
at process._fatalException (internal/bootstrap/node.js:494:27)

Node version: 10.15.1

npm version: 6.4.1

What i can do???

Thanks

(John Gee) #2

Duplicate of: i need update npm

(Lars Willighagen) closed #3