安装 NPM 依赖: $ yarn install 时发生的错误如何解决?
yarn install v1.7.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.0.7: The platform "linux" is incompatible with this module.
info "fsevents@2.0.7" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.0.7: The engine "node" is incompatible with this module. Expected version "^8.16.0 || ^10.6.0 || >=11.0.0".
[3/4] Linking dependencies...
warning " > sass-loader@7.1.0" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
error An unexpected error occurred: "EIO: i/o error, copyfile '/home/vagrant/.cache/yarn/v1/npm-vue-2.6.10-a72b1a42a4d82a721ea438d1b6bf55e66195c637/dist/vue.esm.browser.js' -> '/home/vagrant/Code/weibo/node_modules/vue/dist/vue.esm.browser.js'".
info If you think this is a bug, please open a bug report with the information provided in "/home/vagrant/Code/weibo/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
上面安装错误,之后 $ npm run watch-poll
可以监听。但不知道能否监控 resources 文件夹下的资源。
推荐文章: