简体   繁体   English

使用npx create-react-app my-app出现错误

[英]using npx create-react-app my-app come up with an error

using npx create-react-app my-app but come up with an error. 使用npx create-react-app my-app但出现错误。

npm : 6.4.1 node : 11.3.0 how to fix this? npm:6.4.1节点:11.3.0怎么解决?

npm ERR! code ENOLOCAL
npm ERR! Could not install from "Files\nodejs\node_cache\_npx\6612" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Program Files\nodejs\node_cache\_logs\2019-07-13T04_25_44_642Z-d
ebug.log
Install for create-react-app@latest failed with code 1

我找到了原因,当用户文件夹补丁包含空格时,在Windows上全局运行npx无效。请参阅此链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 npx create-react-app my-app 命令出错 - npx create-react-app my-app command gives an error 在创建反应项目时在“npx create-react-app my-app”之后运行命令“npm start”时出错 - getting error when run command 'npm start' after 'npx create-react-app my-app' in creating a react project npx create-react-app my-app 在安装新版本的 NodeJS 后给我以下错误? - npx create-react-app my-app giving me the following error after installing new version of NodeJS? `npx create-react-app my-app` 正在尝试使用错误的 npm - `npx create-react-app my-app` is trying to use the wrong npm npx create-react-app my-app 创建后删除已安装的 node_modules 包? - npx create-react-app my-app deleting installed node_modules package after creating? npx create-react-app my-app 后出现不兼容警告 - Incompatibility warnings after npx create-react-app my-app 使用“create-react-app my-app”创建反应应用程序时出错 - Error while creating react app using “create-react-app my-app” 如何解决“ create-react-app my-app”未生成my-app项目并显示错误的问题? - How to resolve “create-react-app my-app” not generating my-app project and shows error? Vs 代码中的 npx-create-react-app my-app 命令错误 - npx-create-react-app my-app command ERROR in Vs Code create-react-app my-app…命令未找到 - create-react-app my-app …command not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM