![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
Lorenzo LI
码农工作者 Love the Bug
展开
-
在进行umi插件的时候,本地验证的时候 yarn global add serve serve ./dist报错Command “serve“ not found
在进行umi插件,本地验证的时候serve ./dist报错,报了serve 不是内部或外部命令,也不是可运行的程序或批处理文件。其实命令不是 serve ./dist 而是 yarn serve ./dist但是呢,依然报错,报了 error:Command “serve” not found解决方法很简单:使用 yarn add serve 局部的安装下就行了然后使用 yarn serve ./dist 可以通过 serve 做本地验证,...原创 2020-12-15 00:44:35 · 9165 阅读 · 3 评论 -
关于报错An unexpected error occurred: “https://registry.yarnpkg.com/react: socket hang up“
很简单 别使用 npm国际的源,使用淘宝镜像源就行了。解决的方法:换源npm config set registry https://registry.npm.taobao.org 和 npm config set disturl https://npm.taobao.org/dist原创 2020-12-15 00:33:09 · 996 阅读 · 1 评论 -
umi插件开发遇到的问题 error An unexpected error occurred: “D:\React\LastWeeek\myapp>package.json:
yarn install v1.21.1error An unexpected error occurred: “E:\WorkSpace\webstorm\umi-plugin\package.json: Unexpected token } in JSON at position 1453”.info If you think this is a bug, please open a bug report with the information provided in “E:\WorkSpace\原创 2020-12-15 00:16:29 · 657 阅读 · 0 评论