vue-cli@2.9.3 安装依赖报错
报错:
$ cnpm install
platform unsupported babel-loader@7.1.4 › webpack@3.12.0 › watchpack@1.6.0 › cho kidar@2.0.3 › fsevents@^1.1.2 Package require os(darwin) not compatible with you r platform(win32)
[fsevents@^1.1.2] optional install error: Package require os(darwin) not compati ble with your platform(win32)
√ Installed 47 packages
√ Linked 773 latest versions
√ Run 1 scripts
peerDependencies link ajv@5.5.2 in C:\Project\official-website\node_modules\_ajv-keywords@2.1.1@ajv-keywords unmet with C:\Project\official-website\node_modules\ajv(6.5.0)
Recently updated (since 2018-05-29): 14 packages (detail see file C:\Project\official-website\node_modules\.recently_updates.txt)
Today:
→ css-loader@0.28.11 › cssnano@3.10.0 › has@^1.0.1(1.0.3) (00:23:29)
√ All packages installed (934 packages installed from npm registry, used 2m, speed 59.26kB/s, json 820(6.23MB), tarball 1.34MB)
解决办法:
重新安装 babel-loader, 将版本号改为7.1.4