使用NPX Create-React-App My-App会出现错误



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

npm : 6.4.1节点 : 11.3.0如何解决这个问题?

npm ERR! code ENOLOCAL
npm ERR! Could not install from "Filesnodejsnode_cache_npx6612" 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 Filesnodejsnode_cache_logs2019-07-13T04_25_44_642Z-d
ebug.log
Install for create-react-app@latest failed with code 1

我找到了原因,当用户文件夹修补程序包含空格时,全局运行 npx 在 Windows 上不起作用。请参阅此链接

相关内容

最新更新