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

《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 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年前 评论

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