[英]What does this error mean and how do I fix it?
After trying to create a react app with the command npx create-react-app myApp
, this error message popped up.尝试使用命令
npx create-react-app myApp
后,弹出此错误消息。 What does it mean?这是什么意思?
OSX: 10.15.6 node version 10.13.0 npm version 6.14.4 OSX:10.15.6 节点版本 10.13.0 npm 版本 6.14.4
internal/modules/cjs/loader.js:582
throw err;
^
Error: Cannot find module '../lib/utils/unsupported.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at /usr/local/lib/node_modules/npm/bin/npm-cli.js:19:21
at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:153:3)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)```
This error means that you are trying to run a module unsupported.js
from a folder that doesn't contain it, to solve this look in the folder pallet locate the unsupported.js
file and then check the root folder where this file is located, and access the folder from terminal or locate the folder in your computer and then open the folder from your IDE so that you will be able to access the files in the folder此错误意味着您正在尝试从不包含它的文件夹中运行模块
unsupported.js
,要解决此问题,请在文件夹托盘中找到unsupported.js
文件,然后检查该文件所在的根文件夹,并从终端访问该文件夹或在您的计算机中找到该文件夹,然后从您的 IDE 打开该文件夹,以便您能够访问该文件夹中的文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.