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

时间:2021-01-10 11:43:50   收藏:0   阅读:28

本文链接: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

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!