cnpm install时,报错TypeError: randomUUID is not a function

大概率是版本问题。
安装报错,是因为最新的淘宝镜像更新了地址。

执行:cnpm -v

返回的信息如下:

cnpm@8.2.0 ()
npm@8.13.2 ()
node@14.15.5 ()
npminstall@6.4.0 ()

 

 

 

由于cnpm的版本过高,需要卸载cnpm再重新装低版本的就可以了。

执行代码如下:

npm uninstall -g cnpm

npm install cnpm@7.1.0 -g

安装成功后再执行 cnpm i 安装就可以了

安装后重新cnpm install
之后npm run serve即可执行你的前端项目。

cnpm install时,报错TypeError: randomUUID is not a function

 
posted @ 2022-07-30 18:02  童年的回忆  阅读(2837)  评论(1编辑  收藏  举报
如果本博客解决了您的问题,可以微信支付宝打赏鼓励一下作者哦,在此表示感谢