vue搭建脚手架时报错
正常搭建脚手架是运用了npm去下载依赖包如果手贱选择了yarn搭建时会出现如下错误Vue CLI v3.5.1✨ Creating project in C:\Users\enminrenguo\Desktop\男人\项目\mymsg.
正常搭建脚手架是运用了npm去下载依赖包
如果手贱选择了yarn
搭建时会出现如下错误
Vue CLI v3.5.1
✨ Creating project in C:\Users\enminrenguo\Desktop\男人\项目\mymsg.
? Initializing git repository...
⚙ Installing CLI plugins. This might take a while...
yarn install v1.13.0
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.7: The platform "win32" is incompatible with this module.
info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
info To upgrade, run the following command:
$ curl --compressed -o- -L https://yarnpkg.com/install.sh | bash
Done in 18.03s.
? Invoking generators...
? Installing additional dependencies...
yarn install v1.13.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.7: The platform "win32" is incompatible with this module.
info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation.
error eslint@5.16.0: The engine "node" is incompatible with this module. Expected version "^6.14.0 || ^8.10.0 || >=9.10.0". Got "8.9.4"
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
ERROR command failed: yarn
解决方法:
在命令行输入 yarn config set ignore-engines true 即可
更多推荐
所有评论(0)