31
2023
05
01:24:14

uni-app 安装期间遇到的问题



推荐点击下面图片,通过本站淘宝优惠价购买:

image.png

uni-app 安装官网:uni-app安装的链接

全局安装vue-cli命令:


npm install -g @vue/cli


出现安装问题


npm WARN deprecated joi@14.3.1: This module has moved and is now available at @hapi/joi. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.

npm WARN deprecated topo@3.0.3: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.

npm WARN deprecated hoek@6.1.3: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.

npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead

npm ERR! Unexpected end of JSON input while parsing near '...TGOVzYcDOP1jLScCp0ACN'


npm ERR! A complete log of this run can be found in:

npm ERR!     /Users/sam/.npm/_logs/2019-04-29T01_23_19_163Z-debug.log


查了一下资料,需要清一下缓存即可


npm cache clean --force


然后在重新执行就好了


npm install -g @vue/cli


运行vue --version出现版本信息则说明安装成功


本文链接:https://hqyman.cn/post/4212.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:





休息一下,本站随机推荐观看栏目:


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

您的IP地址是: