npm i 时出现npm ERR! code ELIFECYCLE报错解决办法

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! webpack-react@1.0.0 start: `webpack serve --config scripts/webpack.config.js --open`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the webpack-react@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Dust\AppData\Roaming\npm-cache\_logs\2024-09-17T17_51_18_810Z-debug.log
PS F:\MyJS\task-route> npm i
npm ERR! code EINTEGRITY
npm ERR! sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA== integrity checksum failed when using sha512: wanted sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA== but got sha512-xIp7/apCFJuUHdDLWe8O1HIkb0kQrOMb/0u6FXQjemHn/ii5LrIzU6bdECnsiTF/GjZkMEKg1xdiZwNqDYlZ6g==. (7610 bytes)

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Dust\AppData\Roaming\npm-cache\_logs\2024-09-17T17_52_12_730Z-debug.log

删除目录下的package-lock.json再试一次。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值