npm出错

npm cache clear




npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "node-media-server" under a package
npm ERR! also called "node-media-server". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR!     <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm>


npm ERR! A complete log of this run can be found in:

npm ERR!     /root/.npm/_logs/2018-06-15T15_29_56_090Z-debug.log



试尽各种办法,最后还是手动卸载了再重装了npm1、sudo npm uninstall npm -g如果步骤1卸不掉npm了(我就是这种情况)2、进到npm的安装目录 /usr/local/lib/node_modules/npm/sudo make uninstall3、手动重装npm

猜你喜欢

转载自blog.csdn.net/qq_28710983/article/details/80710668
NPM