![](/img/trans.png)
[英]What does the export function javascript error mean and how can I fix it?
[英]What does this error mean and how do I fix it?
嘗試使用命令npx create-react-app myApp
后,彈出此錯誤消息。 這是什么意思?
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)```
此錯誤意味着您正在嘗試從不包含它的文件夾中運行模塊unsupported.js
,要解決此問題,請在文件夾托盤中找到unsupported.js
文件,然后檢查該文件所在的根文件夾,並從終端訪問該文件夾或在您的計算機中找到該文件夾,然后從您的 IDE 打開該文件夾,以便您能夠訪問該文件夾中的文件
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.