[email protected] 安装依赖报错
报错:
$ cnpm install
platform unsupported [email protected] › [email protected] › [email protected] › cho [email protected] › 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 [email protected] in C:\Project\official-website\node_modules\[email protected]@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:
→ [email protected] › [email protected] › 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