+-
npm安装mongoose 报错

npm init --yes
npm install --save mongoose

npm ERR! Refusing to install package with name "mongoose" under a package
npm ERR! also called "mongoose". Did you name your project the same
npm ERR! as the dependency you're installing?

npm ERR! Refusing to install package with name "mongoose" under a package npm ERR! also called "mongoose". Did you name your project the same npm ERR! as the dependency you're installing?

其实程序以及说的很清楚了呀,重名了 /捂脸

已参与了 SegmentFault 乐贴网「问答」打卡,欢迎正在阅读的你也加入。