在Windows 10上运行纱线启动一直失败
我正在将一个web项目从Mac移动到Windows 10 PC。我使用Github桌面下载所有文件,并使用Visual Studio代码处理我的项目。每次运行在Windows 10上运行纱线启动一直失败,windows,npm,yarnpkg,Windows,Npm,Yarnpkg,我正在将一个web项目从Mac移动到Windows 10 PC。我使用Github桌面下载所有文件,并使用Visual Studio代码处理我的项目。每次运行npm start或warn start时,我都会收到此错误。我尝试过删除warn.lock,package lock.json,node\u模块,使用其他脚本终端,清除缓存,npm安装,npm重建,warn安装。我能找到的一切都不管用,我也不知道该怎么办。任何帮助都将不胜感激。谢谢 以下是错误消息: Starting the develo
npm start
或warn start
时,我都会收到此错误。我尝试过删除warn.lock
,package lock.json
,node\u模块
,使用其他脚本终端,清除缓存,npm安装,npm重建
,warn安装
。我能找到的一切都不管用,我也不知道该怎么办。任何帮助都将不胜感激。谢谢
以下是错误消息:
Starting the development server...
events.js:200
throw er; // Unhandled 'error' event
^
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:81:21) {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn cmd',
path: 'cmd',
spawnargs: [ '/s', '/c', 'start', '""', '/b', '"http://localhost:3000/"' ]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
好吧,仔细看看这个:
{
errno:'enoint',
代码:'enoint',
syscall:'spawn cmd',
路径:“cmd”,
spawnargs:['/s'、'/c'、'开始'、'''、'/b'、''http://localhost:3000/"' ]
}
好的,仔细看看这个:
{
errno:'enoint',
代码:'enoint',
syscall:'spawn cmd',
路径:“cmd”,
spawnargs:['/s'、'/c'、'开始'、'''、'/b'、''http://localhost:3000/"' ]
}