博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
使用homestead执行yarn add jquery --save命令报错解决方案记录
阅读量:6504 次
发布时间:2019-06-24

本文共 1893 字,大约阅读时间需要 6 分钟。

hot3.png

homstead虚拟机,在项目目录下执行命令:

yarn add jquery --save

执行过程中出现如下错误:

yarn add jquery --saveyarn add v0.18.0info No lockfile found.[1/4] Resolving packages...warning laravel-elixir > browserify > glob > minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issuewarning laravel-elixir > gulp-if > gulp-match > minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issuewarning gulp > vinyl-fs > glob-watcher > gaze > globule > minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issuewarning gulp > vinyl-fs > glob-watcher > gaze > globule > glob > graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.warning laravel-elixir > gulp-phpunit > gulp-messenger > chalkline@0.0.4: No longer sponsored by CT - please visit http://niftylettuce.com for more infowarning laravel-elixir > browser-sync > localtunnel > request > node-uuid@1.4.7: use uuid module instead[2/4] Fetching packages...warning fsevents@1.0.15: The platform "linux" is incompatible with this module.info "fsevents@1.0.15" is an optional dependency and failed compatibility check. Excluding it from installation.[3/4] Linking dependencies...error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../detective/node_modules/acorn/bin/acorn' -> '/home/vagrant/Code/sample/node_modules/acorn-jsx/node_modules/.bin/acorn'".info If you think this is a bug, please open a bug report with the information provided in "/home/vagrant/Code/sample/yarn-error.log".info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

初步判断时symlink的问题,之前在执行 npm install 命令时也出现相类似的问题,索性执行

yarn add jquery --save --no-bin-links

执行完毕后,能够正常安装jquery。

转载于:https://my.oschina.net/Chinapap/blog/818285

你可能感兴趣的文章
Centos6.4最小化安装系统初始化脚本
查看>>
PaaS变厚了
查看>>
赛门铁克开启“容灾即服务”时代
查看>>
复杂度归纳--小结
查看>>
PHP学习笔记 第八讲 Mysql.简介和创建新的数据库
查看>>
js获取鼠标位置
查看>>
Mysql
查看>>
跨越企业的“中等收入陷阱”
查看>>
Android 开发者必知的开发资源
查看>>
软件工程技术基础-(软件复用技术)
查看>>
给django视图类添加装饰器
查看>>
【Project Euler】530 GCD of Divisors 莫比乌斯反演
查看>>
luogu P1280 尼克的任务 序列DP
查看>>
sys.check_constraints
查看>>
vue问题
查看>>
Python变量类型(l整型,长整形,浮点型,复数,列表,元组,字典)学习
查看>>
解决方案(.sln)文件
查看>>
指针和引用的区别
查看>>
运行PHP出现No input file specified错误解决办法
查看>>
【重建】从FJOI2016一试谈起
查看>>