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

时间:2019-07-13 06:49:10

标签: node.js npm

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

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

1 个答案:

答案 0 :(得分:0)

我发现了原因,当用户文件夹补丁包含空格时,在Windows上全局运行npx无效。请参见此link

相关问题