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

问题描述 node.js安装依赖包出现 yarn install info No lockfile found 错误,具体内容如下 vue-next git:(fe853a5a) npm install yarn -gchanged 1 package in 679ms vue-next git:(fe853a5a) yarn install yarn install v1.22.17info No lockfile found.$

问题描述

note.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
 
本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

node_modules is not recognized as an internal or external command(node_modules 未被识别为内部或外部命令)
Querying DynamoDB with Lambda does nothing(使用 Lambda 查询 DynamoDB 没有任何作用)
AWS DynamoDb DocumentClient - Creating a batchWrite from an array of Items - node.js(AWS DynamoDb DocumentClient - 从项目数组创建 batchWrite - node.js)
Append a new object to a JSON Array in DynamoDB using NodeJS(使用 NodeJS 将新对象附加到 DynamoDB 中的 JSON 数组)
where to find all the exception classes in AWS-SDK for dynamodb in NodeJS typescript?(在哪里可以找到 AWS-SDK for dynamodb 在 NodeJS 打字稿中的所有异常类?)
Case-insensitive queries with Amazon Dynamo DB(使用 Amazon Dynamo DB 进行不区分大小写的查询)