npm error code ELIFECYCLE

接受了一个老的项目,做起来真是一个头两个大。

安装错误信息如下:

error code ELIFECYCLE
21 error errno 1
22 error [email protected] dev: `node build/dev-server.js`
22 error Exit status 1
23 error Failed at the [email protected] dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

解决办法:

1、npm cache clean --force

2、rm -rf node_modules

3、rm -rf package-lock.json

4、npm install

猜你喜欢

转载自blog.csdn.net/xingmei_ok/article/details/127009849