小编Aaa*_*k__的帖子

安装 npm 软件包时出错 npm ERR! 代码 生命周期

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

>npx create-react-app .
>npm i <packages>
>npm install 
Run Code Online (Sandbox Code Playgroud)

等等,所以上面的命令都不起作用

错误:

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.
Run Code Online (Sandbox Code Playgroud)

我发现这主要是 Windows 问题,但我使用 Mac

bash npm npm-install npm-start

4
推荐指数
1
解决办法
2777
查看次数

标签 统计

bash ×1

npm ×1

npm-install ×1

npm-start ×1