lerna ERR! yarn install --mutex network:42424 --non-interactive exited 1
查明原因是:yarn的版本问题造成的,切换到稳定版本
# yarn 升级最新版本
npm install yarn@latest -g
# 查看yarn历史版本
npm view yarn versions --json
yarn --version (查看当前版本)
# yarn 升级指定版本 (例:升级到1.21.3版本)
yarn upgrade v1.21.3
(稳定版本可参考yarn中文网)
https://yarn.bootcss.com/docs/install/#windows-stable](https://yarn.bootcss.com/docs/install/#windows-stable)
caniuse-lite is outdated.
删除yarn.lock
yarn install
第一种就是删除 yarn.lock和node_modules依赖包后直接 yarn install 安装,这样有个问题就是不止一个依赖包会安装,所有的都会更新。如果出现新的语法和新的属性不一样的话就会报错。特别是使用eslint的时候很明显。
第二种是在yarn.lock中找到 Browserslist 和 caniuse-lite 给删除掉,然后 更新依赖包yarn upgrade caniuse-lite browserslist
yarn 报错'vue-cli-service' 不是内部或外部命令,也不是可运行的程序
重装node依赖就好
节点Sass尚不支持您当前的环境:Windows 64位
问题
Cannot load gulp: Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (57)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v3.13.1
[09:57:14] Cannot run sass task: missing in gulpfile.js
解决方法尝试一 ---- 失败:
npm i node-sass -D
报错
解决方法尝试二 ---- 失败:
先卸载
npm uninstall --save node-sass
报错
Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-57_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-57_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
解决方法尝试三 ---- 成功:
使用淘宝镜像安装
cnpm install node-sass
还没装cnpm?
安装cnpm
(1)输入以下命令
npm install -g cnpm --registry=https://registry.npm.taobao.org
(2)输入cnpm -v输入是否正常,这里肯定会出错。
cnpm -v
运行yarn 出现报错:react-dev-inspector@1.7.1: The engine "node" is incompatible with this module. Expected version ">=12.0.0". Got "10.16.3"
yarn config set ignore-engines true