初始化 yarn 报错了,包没找到?
[2/4] Fetching packages...
error https://registry.yarnpkg.com/smartwrap/-/s...: Extracting tar content of undefined failed, the file appears to be co
rrupt: "ENOENT: no such file or directory, open 'C:\Users\Administrator\AppData\Local\Yarn\Cache\v4\npm-smartwrap-1.0.10-873ef350d
4ee1262fed4a80a55634d86ae1faf48\node_modules\smartwrap\ejq'"
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
关于 LearnKu
@liuqing_hu
@Summer
找了下 好像腾讯v1.7以上的都有这个问题,换成1.6 yarn 成功了 但是在git bash 上 提示 bash: wepy: command not found
https://github.com/yarnpkg/yarn/issues/262... 不知道 用 npm 试试,删了 node_modules
解决了 配置yarn 全局到path
@liyu001989 V1.7以上 好像因为smartwrap依赖有问题,用yarn安装不了报错,官方issue也没维护,安装1.6成功了。
用npm全局可以按v1.7.3成功了,但是会报wepy 命令找不到,已经将npm root -g 全局path配置进环境变量了,不知道是什么原因?win7