node.js - Installing Ionic framework- setting up env variables - Not working. -


i new js , planning build simple application

i installing ionic , cordova using npm -g install ionic, did same cordova also.

it gets installed in /usr/local/lib/ionic ionic points -> /usr/local/lib/node_modules/ionic/bin/ionic

i this

/usr/local/bin/ionic -> /usr/local/lib/node_modules/ionic/bin/ionic ionic@1.2.8 /usr/local/lib/node_modules/ionic ├── connect-livereload@0.4.0 ├── progress@1.1.7 ├── open@0.0.5 ├── colors@0.6.2 ├── ncp@0.4.2 

now how set env variables?

export ionic="/usr/local/lib/node_modules/ionic" export path=$path:$ionic/bin 

is right?

i tried downloading ionic files, put them under /home/softwares/ionic , changed bashrc to

export ionic="~/softwares/ionic" export path=$path:ionic 

what this? put short, npm install of ionic not work. if ionic -v or try ionic start blahblah blank nothing comes up.

change node link:

#run  node #and in case displayed /usr/sbin/node.  #if says command not found, skip 3. remove  sudo rm /usr/sbin/node #run  nodejs #in case displayed /usr/bin/nodejs.  #make link  sudo ln -s /usr/bin/nodejs /usr/bin/node  #or  sudo ln -s /usr/bin/nodejs /usr/sbin/node  

ref: "ionic start projectname" not working ionic framework


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -