npm安装mongoose 报错

依然洋葱
  • 13

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?

回复
阅读 456
1 个回答
✓ 已被采纳
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 思否「问答」打卡,欢迎正在阅读的你也加入。
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
你知道吗?

宣传栏