简体   繁体   English

使用npx create-react-app时产生Span ENOENT错误

[英]Spawn ENOENT error when using npx create-react-app

I'm getting a strange and rather uninformative error after attempting to create a new react app using 'npx create-react-app'. 尝试使用“ npx create-react-app”创建新的React应用后,我得到一个奇怪且不具信息性的错误。

$ npx create-react-app client
spawn C:\Program Files\MongoDB\Server\4.0\bin ENOENT

For some reason it's pointing to my mongoDB folder, this only started after I installed mongoDB on my laptop for the first time. 由于某种原因,它指向我的mongoDB文件夹,只有在我第一次在笔记本电脑上安装mongoDB之后,此文件夹才会启动。 I have no idea how to replicate this error on another system. 我不知道如何在另一个系统上复制此错误。

I've tried uninstalling mongoDB as well, but I still get the same error. 我也尝试过卸载mongoDB,但是仍然遇到相同的错误。

尝试清除位于appdata文件夹中的npm cache .. cache。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM