终端下 node npm 都有版本号,但是安装淘宝镜像就不行,报错信息如下
提示:和目录有没有中文没有关系,主要是这一句
ENOENT: no such file or directory, rename 'C:\Users\34873\AppData\Roaming\npm\node_modules\.staging\ansi-regex-9e12e1de' -> 'C:\Users\34873\AppData\Roaming\npm\node_modules\cnpm\node_modules\npm\node_modules\ansi-regex'
我查看了本机的目录没有C:\Users\34873\AppData\Roaming\npm\node_modules\.staging\ansi-regex-9e12e1de',但是也没有'C:\Users\34873\AppData\Roaming\npm\node_modules\cnpm\node_modules\npm\node_modules\ansi-regex
真心不知道怎么弄了 求大神。谢谢
老实说 ,我也不知道怎么就解决了 ,什么也没动,安装了yarn 直接npm install yarn -g 然后在windows下把yarn的环境变量配置好,再把淘宝源换成yarn 就好了参考的地址https://c4ys.com/archives/844 然后就可以了,既有yarn 又有cnpm 我的表述就这些 不懂callme 一起探讨问题