yarn add cross-env 出现 protocol error, symlink 解决方案

https://zhuanlan.zhihu.com/p/56396589

我根着这位作者走,前面是没有问题,直到运行yarn add cross-env的时候报了个错

error An unexpected error occurred: “EPROTO: protocol error, symlink ‘../acorn/bin/acorn’ -> ‘/home/vagrant/code/weibo/node_modules/acorn-dynamic-import/node_modules/.bin/acorn’”.

后来加了个 –no-bin-links参数就好了:laughing:(👇)

yarn add cross-env –no-bin-links


整了差不多得有三天 终于出现这个命令可把我给牛逼坏了(插会儿腰

本作品采用《CC 协议》,转载必须注明作者和本文链接
《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 1

您好,我运行 yarn install --no-bin-links报An unexpected error occurred: "registry.npm.taobao.org/axios: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND 41091".怎么解决,换了淘宝源也是也是一样的问题怎么解决一下呢

4年前 评论

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