Happy hacking!
C:\Users\Suraj\Desktop>cd blogs
C:\Users\Suraj\Desktop\blogs>npm start
> blogs@0.1.0 start C:\Users\Suraj\Desktop\blogs
> react-scripts start
i 「wds」: Project is running at http://192.168.0.100/
i 「wds」: webpack output is served from
i 「wds」: Content not from webpack is served from C:\Users\Suraj\Desktop\blogs\public
i 「wds」: 404s will fallback to /
Starting the development server...
events.js:298
throw er; // Unhandled 'error' event
^
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:467:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
at onErrorNT (internal/child_process.js:467:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn cmd',
path: 'cmd',
spawnargs: [ '/s', '/c', 'start', '""', '/b', '"http://localhost:3000/"' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! blogs@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the blogs@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Suraj\AppData\Roaming\npm-cache\_logs\2020-05-19T12_58_36_243Z-debug.log
我还安装了节点js。
C:\Users\Suraj\Desktop\blogs>node --version
v13.8.0
C:\Users\Suraj\Desktop\blogs>npx --version
6.13.6
我已经使用npx create-react-app博客进行安装。但是无法使用npx start启动它。 这是我第一次尝试制作React应用。在此之前,我从未做过任何React应用。安装过程已完成,最后显示了愉快的信息!也许它已经成功安装了react app。这个你能帮我吗。预先感谢。