安装npm软件包npm ERR时出错!代码ELIFECYCLE

时间:2020-06-22 15:20:07

标签: bash npm npm-install npm-start

不知道发生了什么,但是我在收到以下错误消息

>npx create-react-app .
>npm i <packages>
>npm install 

以此类推,因此上述命令均无效

错误:

npm ERR! code ELIFECYCLE
npm ERR! syscall spawn C:\Program Files\git\bin\bash.exe
npm ERR! file C:\Program Files\git\bin\bash.exe
npm ERR! path C:\Program Files\git\bin\bash.exe
npm ERR! errno ENOENT
npm ERR! core-js@2.6.11 postinstall: `node -e "try{require('./postinstall')}catch(e){}"`
npm ERR! spawn C:\Program Files\git\bin\bash.exe ENOENT
npm ERR! 
npm ERR! Failed at the core-js@2.6.11 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

我已经看到主要是Windows问题,但是我使用Mac

1 个答案:

答案 0 :(得分:0)

https://github.com/facebook/create-react-app/issues/8441,这可能会对您有所帮助。可能是因为错误的重击!