Help with installing Ionic Cordova via Terminal - Mac!

Asked

Viewed 128 times

0

I’m trying to install Ionic to develop a mobile app and am following a step-by-step site:Tableless, but in the part where it is requested to perform the command npm install -g ionic cordova, packages start to be installed, however when the installation is finished it returns it to me via the terminal itself:

Macbook-Pro-de-Lucas:~ Lucas$ npm install -g Ionic Cordova npm WARN deprecated [email protected]: Use uuid module Instead /usr/local/lib [email protected]

npm ERR! Darwin 15.5.0

npm ERR! argv "/usr/local/bin/Node" "/usr/local/bin/npm" "install" "-g" "Ionic" "Cordova"

npm ERR! Node V6.11.0

npm ERR! npm v3.10.10

npm ERR! path .. /lib/node_modules/Cordova/bin/Cordova

npm ERR! code EACCES

npm ERR! Errno -13

npm ERR! syscall symlink

npm ERR! Error: EACCES: permission denied, symlink '.. /lib/node_modules/Cordova/bin/Cordova' -> '/usr/local/bin/Cordova'

npm ERR! at Error (turn on)

npm ERR! { Error: EACCES: permission denied, symlink '.. /lib/node_modules/Cordova/bin/Cordova' -> '/usr/local/bin/Cordova'

npm ERR! at Error (turn on)

npm ERR! RRNO: -13,

npm ERR! code: 'EACCES',

npm ERR! syscall: 'symlink',

npm ERR! path: '.. /lib/node_modules/Cordova/bin/Cordova',

npm ERR! dest: '/usr/local/bin/Cordova' }

npm ERR!

npm ERR! Please Try running this command Again as root/Administrator.

npm ERR! Please include the following file with any support request:

npm ERR! /Users/Lucas/npm-debug.log

Macbook-Pro-de-Lucas:~ Ionic $Lucas --version -bash: Ionic: command not found

I need a force, guys... :/

  • This tableless tutorial is very old, it is still using Ionic 1. Using npm install -g Ionic Cordova vc will install the current version. I recommend following the tutorial from Ionic https:/ionicframework.com/docs/intro/installation/ website. Remember to also install Node.js 6 or higher

  • Try running the command as super user via sudo su.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.