[solved] First time Ionic 2 installation problem


#1

Hello, I have been trying to install Ionic 2 for days and with no luck, I’m posting here.
So far, based on https://github.com/driftyco/ionic-cli/issues/960, I tried downgrading to 5.11.0 but didn’t work.
I have also tried npm cache clean based on https://github.com/npm/npm/issues/12231

$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.


Having problems installing ionic on Mac
#2

Okay, not sure what happened but when I tried this today, I didn’t receive the errors:

sudo npm install npm@3 -g
sudo npm install -g cordova
sudo npm install -g ionic@beta
ionic start cuteFungiPics --v2

This gave the following response:

******************************************************
 Dependency warning - for the CLI to run correctly,      
 it is highly recommended to install/upgrade the following:     
 Install ios-deploy to deploy iOS applications to devices.  `npm install -g ios-deploy` (may require sudo)
******************************************************
Creating Ionic app in folder /Users/Prasuna/cuteFungiPics based on tabs project
Downloading: https://github.com/driftyco/ionic2-app-base/archive/master.zip
[=============================]  100%  0.0s
Downloading: https://github.com/driftyco/ionic2-starter-tabs/archive/master.zip
[=============================]  100%  0.0s
Installing npm packages...
Adding initial native plugins
[=============================]  100%  0.0s
Adding in iOS application by default
add to body class: platform-ios
Saving your Ionic app state of platforms and plugins
Saved platform
Saved plugins
Saved package.json
♬ ♫ ♬ ♫  Your Ionic app is ready to go! ♬ ♫ ♬ ♫
Make sure to cd into your new app directory:
  cd cuteFungiPics
To run your app in the browser (great for initial development):
  ionic serve
To run on iOS:
  ionic run ios
To run on Android:
  ionic run android
To test your app on a device easily, try Ionic View:
  http://view.ionic.io
Building an Enterprise App? We can help!
  http://ionic.io/enterprise
New! Add push notifications, live app updates, and more with Ionic Platform!
  https://apps.ionic.io/signup
New to Ionic? Get started here: http://ionicframework.com/docs/v2/getting-started

Now it’s a matter of continuing the learning process and seeing how many errors I’ll run into…


#3

I ran into this as well, upgrading from beta-2 to v2. Uninstalling and reinstalling ionic cleared this up, removing the cache didnt seem to help:

npm uninstall -g ionic
npm install -g ionic

#4

Please I have been having issues installing ionic. Cordova installed perfectly, I am using a Win8 OS, Nodejs V6.9.1, npm v3.10.8. I have done a npm cache clean. Here is the error log:

82953 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.0.15 (node_modules\ionic\node_modules\ionic-app-lib\node_modules\glob-watcher\node_modules\chokidar\node_modules\fsevents): 82954 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.15: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”}) 82955 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin 82955 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any 82955 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: win32 82955 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 82956 verbose stack Error: ENOENT: no such file or directory, rename ‘C:\Users\HP 655\AppData\Roaming\npm\node_modules.staging\noptify-491acce8’ -> ‘C:\Users\HP 655\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\tiny-lr-fork\node_modules\noptify’ 82956 verbose stack at whenOldMovedAway (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:43:5) 82956 verbose stack at C:\Program Files\nodejs\node_modules\npm\lib\utils\rename.js:13:14 82956 verbose stack at CB (C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:85:17) 82956 verbose stack at FSReqWrap.oncomplete (fs.js:123:15) 82956 verbose stack 82956 verbose stack Error: ENOENT: no such file or directory, rename ‘C:\Users\HP 655\AppData\Roaming\npm\node_modules.staging\noptify-491acce8’ -> ‘C:\Users\HP 655\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\tiny-lr-fork\node_modules\noptify’ 82956 verbose stack at Error (native) 82957 verbose cwd C:\Users\HP 655 82958 error Windows_NT 6.2.9200 82959 error argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “install” “-g” “ionic” 82960 error node v6.9.1 82961 error npm v3.10.8 82962 error path C:\Users\HP 655\AppData\Roaming\npm\node_modules.staging\noptify-491acce8 82963 error code ENOENT 82964 error errno -4058 82965 error syscall rename 82966 error enoent ENOENT: no such file or directory, rename ‘C:\Users\HP 655\AppData\Roaming\npm\node_modules.staging\noptify-491acce8’ -> ‘C:\Users\HP 655\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\tiny-lr-fork\node_modules\noptify’ 82967 error enoent ENOENT: no such file or directory, rename ‘C:\Users\HP 655\AppData\Roaming\npm\node_modules.staging\noptify-491acce8’ -> ‘C:\Users\HP 655\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\tiny-lr-fork\node_modules\noptify’ 82967 error enoent This is most likely not a problem with npm itself 82967 error enoent and is related to npm not being able to find a file. 82968 verbose exit [ -4058, true ]

Thanks in advance