Hello, I have been trying to install Ionic 2 for days and with no luck, I’m posting here.
So far, based on NodeJS 6 support · Issue #960 · ionic-team/ionic-cli · GitHub, I tried downgrading to 5.11.0 but didn’t work.
I have also tried npm cache clean
based on error on installing ioniv v2 · Issue #12231 · npm/npm · GitHub
$sudo npm install -g ionic@beta
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@3.0.8: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use ‘npm ls graceful-fs’ to find it in the tree.
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use ‘npm ls graceful-fs’ to find it in the tree.
npm WARN deprecated cross-spawn-async@2.1.9: cross-spawn no longer requires a build toolchain, use it instead!
npm WARN deprecated lodash@2.1.0: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
/usr/local/lib
└── (empty)
npm WARN In ionic@2.0.0-beta.33 replacing bundled version of glob-watcher with glob-watcher@2.0.0
npm WARN In ionic@2.0.0-beta.33 replacing bundled version of semver with semver@4.2.0
npm WARN In ionic@2.0.0-beta.33 replacing bundled version of ionic-app-lib with ionic-app-lib@2.0.0-beta.19
npm ERR! Darwin 15.2.0
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” “-g” “ionic@beta”
npm ERR! node v5.11.0
npm ERR! npm v3.8.6
npm ERR! path /usr/local/lib/node_modules/.staging/ansi-392b32ed
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename ‘/usr/local/lib/node_modules/.staging/ansi-392b32ed’ → ‘/usr/local/lib/node_modules/ionic/node_modules/cordova-lib/node_modules/ansi’
npm ERR! enoent ENOENT: no such file or directory, rename ‘/usr/local/lib/node_modules/.staging/ansi-392b32ed’ → ‘/usr/local/lib/node_modules/ionic/node_modules/cordova-lib/node_modules/ansi’
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Prasuna/npm-debug.log
npm ERR! code 1
Any help would be appreciated! Feel free to let me know if I’m not clear enough. I’m not sure if I should include the log but I can if it helps.