node.js - Why am I having trouble installing npm modules? -


i want install react-native-cli module haven't been able so, or other module.

i'm trying following:

npm install -g react-native-cli 

what happens terminal processes instruction, yields error. i've used node in windows few days , have been able install successfully, maybe because mac newbie going wrong.

i've wondered if node installed. in terminal if write "node" cursor changes $ >, guess it's sign. can things such as:

node >console.log('hello world!'); 

and working perfectly. if do:

node >--version 

it doesn't work.

so node installed? doing wrong?

try this

sudo npm install -g react-native-cli 

to check version use

node --version 

thanks


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -