查看npm全局安装的包的问题,求解
想查看npm全局安装的包,好不容易找到了一个命令:
$ npm list -g --depth=0
结果如下:
/usr/local/lib
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/live-server/node_modules/colors
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/live-server/node_modules/cors
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/live-server/node_modules/event-stream
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/live-server/node_modules/object-assign
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/live-server/node_modules/[email protected]@opn
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/live-server/node_modules/[email protected]@proxy-middleware
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/live-server/node_modules/send
npm ERR! missing: npm-package-arg@^4.1.1, required by [email protected]
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/npm/node_modules/init-package-json/node_modules/glob
npm ERR! missing: strip-ansi@^3.0.1, required by [email protected]
npm ERR! missing: strip-ansi@^3.0.0, required by [email protected]
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/concat-stream/node_modules/readable-stream
npm ERR! missing: strip-ansi@^3.0.1, required by [email protected]
npm ERR! missing: strip-ansi@^3.0.0, required by [email protected]
npm ERR! invalid: [email protected] /usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/glob
npm ERR! missing: strip-ansi@^3.0.0, required by [email protected]
虽然查看到了全局安装的包,但是有一些错误,怎么去掉啊,或者怎么解决啊,超级强迫症,。。。。。。。 求解啊。。。。。。。
2 回复
全局安装的包在 /usr/local/lib/node_modules/ 目录下
怎么解决错误啊