安装 NPM 依赖: $ yarn install 时发生的错误如何解决?

安装 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 文件夹下的资源。

《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 5
TigerLin

yarn install --no-bin-links 试试

4年前 评论

@深入浅出
运行 yarn install --no-bin-links
再运行 npm run watch-poll

Laravel

Laravel

Laravel

4年前 评论

现在我彻底监控不了。肿么办?

4年前 评论
TigerLin

把vagrant重启

4年前 评论

现在不仅监控不了,再次进虚拟机根目录都不行了。
vagrant@homestead:~/Code$ cd ~/Code/weibo
-bash: cd: /home/vagrant/Code/weibo: No such file or directory

受不了了,我把项目删除了,重新再来。

4年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!