create-react-app - 无法使用npm install

时间:2017-06-06 17:35:11

标签: reactjs npm create-react-app

我从未在独立项目中使用过反应,总是使用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删除我的包裹?

版本:

  1. NPM - 5.0.3
  2. 节点 - 7.10.0
  3. create-react-app - 1.3.1

0 个答案:

没有答案