首页 > 移动平台 > 详细

执行create-react-app报错:Could not install from "XXpath" as it does not contain

时间:2021-01-10 11:43:50      阅读:28      评论:0      收藏:0      [点我收藏+]

本文链接:https://www.cnblogs.com/chenzhihong294/p/14257288.html


 

Problem:

学习react时npx执行create-react-app报错


后面发现是路径问题,node的路径下带有了空格,如图

技术分享图片

 

 

 在Program和Files中间有一个空格。

此时,cmd执行

npm config get cache

将路径中的空格用‘~’代替,如下图:

技术分享图片

 

 搞定之后就可以正常执行啦!

技术分享图片

 


另:React安装教程可见该博主的帖子:https://blog.csdn.net/weixin_36732046/article/details/95884577

执行create-react-app报错:Could not install from "XXpath" as it does not contain

原文:https://www.cnblogs.com/chenzhihong294/p/14257288.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!