有没有办法将 npm-shrinkwrap 的 lockfileVersion 降低到 lockfileVersion@1,它会自动生成 lockfileversion@2? [英] Is there way to lower the lockfileVersion of npm-shrinkwrap to lockfileVersion@1, it automatically makes lockfileversion@2?
问题描述
[错误] - 执行命令 [app-deploy] 期间发生错误 - [使用 NPM 安装依赖项].停止运行命令.错误:命令/bin/sh -c npm --production install 失败,错误信号:被杀死.Stderr:npm WARN read-shrinkwrap 这个版本的npm兼容lockfileVersion@1.
[ERROR] - An error occurred during execution of command [app-deploy] - [Use NPM to install dependencies]. Stop running the command. Error: Command /bin/sh -c npm --production install failed with error signal: killed. Stderr:npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1.
推荐答案
我已经通过删除 node_modules 和 package.json 文件,然后使用 npm install 安装所有软件包解决了这个问题.使用了提供的命令:sudo rm -rf node_modules package-lock.json &&npm 安装
I have solved this issue by removing node_modules and package.json file and then, installing all the packages using npm install. The provided command was used :
sudo rm -rf node_modules package-lock.json && npm install
这篇关于有没有办法将 npm-shrinkwrap 的 lockfileVersion 降低到 lockfileVersion@1,它会自动生成 lockfileversion@2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!