安装node-modules包出现的错误解决
安装包出现类似于Running postinstall script... 等错误
Progress: resolved 566, reused 524, downloaded 0, added 0, done
node_modules/.pnpm/registry.npmmirror.com+pngquant-bin@6.0.1/node_modules/pngquant-bin: Running postinstall script...
node_modules/.pnpm/registry.npmmirror.com+gifsicle@5.2.0/node_modules/gif
方案1.只需要找到对应的包名重新安装,在xxx.lock.yaml添加对应包名并锁定版本即可
方案2.使用cnpm安装包再使用当前包命令安装一次即可,如yarn-lock,使用的yran,先用cnpm再用yarn
还没有评论,快来发表第一个评论吧