node.js安装依赖包 yarn install info No lockfile found

时间:2023-03-30

问题描述

node.js安装依赖包出现 yarn install info No lockfile found 错误,具体内容如下
➜  vue-next git:(fe853a5a) npm install yarn -g
changed 1 package in 679ms
➜  vue-next git:(fe853a5a) yarn install       
yarn install v1.22.17
info No lockfile found.
$ node ./scripts/preinstall.js
This repository requires using pnpm as the package manager  for scripts to work properly.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

解决办法

用以下代码:
yarn install --ignore-scripts
详细命令参考以下文档:
https://classic.yarnpkg.com/en/docs/cli/install
 
上一篇:用于创建头像的 jQuery/JavaScript 库? 下一篇:没有了

相关文章

最新文章