1,937
社区成员




为什么我的npm无论安装什么都报这个错误 npm ERR! Cannot read property 'insert' of undefined 求解!求解!求解!!
root@zth:/home/zth# npm install -g cnpm --registry=https://registry.npm.taobao.org
npm ERR! Cannot read property 'insert' of undefined
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-07-12T09_12_03_547Z-debug-0.log
我的版本号
root@zth:/home/zth# node -v
v12.22.9
root@zth:/home/zth# npm -v
8.5.1
为什么就是不能npm安装vue-cli也不能安装cnpm???
我碰到了类似的问题,是code使用的版本太低,如果仍然希望使用,可以尝试这样解决:
$ rm package-lock.json
$ npm cache clean --force
$ npm install --registry=https://registry.npmjs.org/
nodejs版本太低了,卸载重新安装,就可以了。
同求解决方案,hexo根本安不了
解决了吗,我也遇到这个问题 了
同求。网上的方法全是错的
解决了吗????我搞react也遇到了