我从未在独立项目中使用过反应,总是使用Rails。
我今天想create-react-app
,所以我跑了create-react-app myapp
。
npm start
一切顺利,直到我想添加一些npm包,让我们说flow-bin
:
当我运行npm install --save-dev flow-bin
时,它会说:
npm WARN gentlyRm not removing /mypath/myapp/node_modules/espree/node_modules/.bin/acorn as it wasn't installed by /mypath/myapp/node_modules/espree/node_modules/acorn
npm notice created a lockfile as package-lock.json. You should commit this file.
+ flow-bin@0.47.0
added 1 package and removed 1096 packages in 15.55s
当我尝试运行npm start
时,也会出现一些错误。
这是一个错误吗?为什么npm install
删除我的包裹?
版本: