javascript - Help Looking for a solution to the problem of npm ERR! extraneous
PHP中文网
PHP中文网 2017-05-19 10:25:48
0
1
482

npm list command throws error

npm ERR! extraneous: babel-generator /Users/zach/node_modules/babel-generator
npm ERR! error in /Users/zach/node_modules/babel-generator: ENOENT: no such file or directory, open '/Users/zach/node_modules/babel-generator/package.json'
npm ERR! extraneous: babel-template /Users/zach/node_modules/babel-template
npm ERR! error in /Users/zach/node_modules/babel-template: ENOENT: no such file or directory, open '/Users/zach/node_modules/babel-template/package.json'
npm ERR! extraneous: babel-traverse /Users/zach/node_modules/babel-traverse
npm ERR! error in /Users/zach/node_modules/babel-traverse: ENOENT: no such file or directory, open '/Users/zach/node_modules/babel-traverse/package.json'
npm ERR! extraneous: caching-transform /Users/zach/node_modules/caching-transform
npm ERR! error in /Users/zach/node_modules/caching-transform: ENOENT: no such file or directory, open '/Users/zach/node_modules/caching-transform/package.json'
PHP中文网
PHP中文网

认证0级讲师

reply all(1)
淡淡烟草味

Confirm the npm version first. I remember that there is a bug in one version of npm, so upgrade it to the highest version of your big version.

Thenrm -rf node_modules/ npm cache clean

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template