react-native: Problem with init a project on Windows

Hi all! I have been tried use react-native for Android on Windows but I got error. This is my steps:

npm i react-native -g react-native init AwesomeProject

This will walk you through creating a new React Native project in C:\tmp\AwesomeProject
events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: spawn npm ENOENT
    at exports._errnoException (util.js:837:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
    at onErrorNT (internal/child_process.js:344:16)
    at doNTCallback2 (node.js:429:9)
    at process._tickCallback (node.js:343:17)
    at Function.Module.runMain (module.js:477:11)
    at startup (node.js:117:18)
    at node.js:951:3

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 22 (11 by maintainers)

Most upvoted comments

hi all I hava get a new problem , how to deal with this problem? Error:This socket is closed image