Installing react-native package from npm...
/Users/vasavi/dev/CLOUDSEED_APP/AwesomeProject/node_modules/react-native/local-cli/init.js:7
class CreateSuppressingTerminalAdapter extends TerminalAdapter {
^^^^^
SyntaxError: Unexpected reserved word
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
+1, I encountered the same issue.
Make sure you have Node 4+ as explained in the setup instructions.
Have the same issue I tried 4.0.0 and 4.2.1 also
but the issue still existed
When i ran yeoman 'yo doctor' it showed me v1.0 .
Then i checked 'node-v'
version 4 existed in nvm environment but not in the global (system wide).
To resolve install 4+ on nvm and also system wide by running the following commands
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo ln -sf /usr/local/n/versions/node/
Thanks for the followup @sriharrsha!
Thanks
Thanks
@sriharrsha Thanks a lot man !
@sriharrsha You saved my day !
ln: /usr/bin/node: Operation not permitted
Same problem while running Node 5.2 Is there a new fix?
@sriharrsha saved my life. I have been trying to fix this error since a week. Glad that I got to see your post. Thanks mate.
Run nvm install node && nvm alias default node
@petervavro for menvm didn't work, tried all the workarounds for it and finally used n package manager and it worked.
+1, I encountered the same issue.
thanks
thanks it Worked 馃憤
use node version 4.4.4
Most helpful comment
Have the same issue I tried 4.0.0 and 4.2.1 also
but the issue still existed
When i ran yeoman 'yo doctor' it showed me v1.0 .
Then i checked 'node-v'
version 4 existed in nvm environment but not in the global (system wide).
To resolve install 4+ on nvm and also system wide by running the following commands
sudo npm cache clean -f/bin/node /usr/bin/node
sudo npm install -g n
sudo n stable
sudo ln -sf /usr/local/n/versions/node/