react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Error: Cannot find module '/Users/tianpeng/AwesomeProject/node_modules/react-native/package.json'

Open Sammiu opened this issue 11 years ago • 0 comments

An error has occurred while I trying to initialize a react-native project by: react-native init awesomeProject:

Error: Cannot find module '/Users/tianpeng/AwesomeProject/node_modules/react-native/package.json' at Function.Module._resolveFilename (module.js:337:15) at Function.Module._load (module.js:287:25) at Module.require (module.js:366:17) at require (module.js:385:17) at checkNodeVersion (/usr/local/lib/node_modules/react-native-cli/index.js:220:21) at /usr/local/lib/node_modules/react-native-cli/index.js:199:5 at ChildProcess.exithandler (child_process.js:194:7) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at maybeClose (internal/child_process.js:818:16)

Other infomation:

System: Mac OS X 10.11.1

npm is installed by nvm when install node.

nvm is installed by brew.

sudo npm -v 2.14.7 sudo node -v v4.2.1

Sammiu avatar Nov 01 '15 03:11 Sammiu