【发布时间】:2022-06-30 02:34:11
【问题描述】:
D:\IT\Practic work\React> create-react-app test
Creating a new React app in D:\IT\Practic work\React\test.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
Aborting installation.
Unexpected error. Please report it as a bug:
Error: spawn UNKNOWN
at ChildProcess.spawn (node:internal/child_process:413:11)
at Object.spawn (node:child_process:700:9)
at spawn (C:\Users\Roman Borodai\AppData\Roaming\npm\node_modules\create-react-app\node_modules\cross-spawn\index.js:12:24)
at C:\Users\Roman Borodai\AppData\Roaming\npm\node_modules\create-react-app\createReactApp.js:390:19
at new Promise (<anonymous>)
at install (C:\Users\Roman Borodai\AppData\Roaming\npm\node_modules\create-react-app\createReactApp.js:341:10)
at C:\Users\Roman Borodai\AppData\Roaming\npm\node_modules\create-react-app\createReactApp.js:468:16
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errno: -4094,
code: 'UNKNOWN',
syscall: 'spawn'
}
Deleting generated file... package.json
Deleting test/ from D:\IT\Practic work\React
Done.
【问题讨论】:
-
你的node版本,npm版本,你是怎么安装create-react-app的
-
是的。节点 v16.14.0。我正在安装 create-react-app。
-
请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。