Node.js 使用nodejs响应本机init错误
我在nodejs中使用命令react native init hello时遇到了这个错误Node.js 使用nodejs响应本机init错误,node.js,react-native,Node.js,React Native,我在nodejs中使用命令react native init hello时遇到了这个错误 events.js:141 throw er; // Unhandled 'error' event ^ Error: spawn npm ENOENT at exports._errnoException (util.js:855:11) at Process.ChildProcess._handle.onexit (internal/child_process.
events.js:141
throw er; // Unhandled 'error' event
^
Error: spawn npm ENOENT
at exports._errnoException (util.js:855:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:455:9)
at process._tickCallback (node.js:369:17)
我明白了,你可以把你的评论作为一个答案,并接受你自己的答案,因为你已经解决了它。