yarn 报错 TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string ...
今天想改一下yarn缓存地址一不小心执行了yarn config set global-folder然后yarn的所有操作都变成了TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type boolean (true)这下完犊子了,咋整呢1.找到yarn的配置文件win+R输入%homepath%回车2.打开.yarnrc文件看到红框里的true没有,这就是这次报错的元
原创
2021-06-07 16:29:37 ·
3266 阅读 ·
2 评论