Error in the IONIC installation process

The respective error is occurring in the process of installing the ionic through the npm. The error is illustrated below:

C:\Users\GSAV>npm install -g ionic
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 minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
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 node-uuid@1.4.7: use uuid module instead
npm WARN deprecated node-uuid@1.3.3: use uuid module instead

  • ansi-regex@2.0.0 node_modules\ionic\node_modules\ansi-regex
  • ansi-styles@2.2.1 node_modules\ionic\node_modules\ansi-styles
  • escape-string-regexp@1.0.5 node_modules\ionic\node_modules\escape-string-regexp
  • has-ansi@2.0.0 node_modules\ionic\node_modules\has-ansi
  • strip-ansi@3.0.1 node_modules\ionic\node_modules\strip-ansi
  • supports-color@2.0.0 node_modules\ionic\node_modules\supports-color
    C:\Users\GSAV\AppData\Roaming\npm
    `-- (empty)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\ionic\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
npm WARN In ionic@2.1.18 replacing bundled version of cross-spawn with cross-spawn@4.0.2
npm WARN In ionic@2.1.18 replacing bundled version of semver with semver@4.2.0
npm WARN In ionic@2.1.18 replacing bundled version of mime-types with mime-types@2.0.14
npm WARN In ionic@2.1.18 replacing bundled version of form-data with form-data@0.2.0
npm WARN In ionic@2.1.18 replacing bundled version of request with request@2.51.0
npm WARN In ionic@2.1.18 replacing bundled version of ionic-app-lib with ionic-app-lib@2.1.9

npm ERR! Windows_NT 6.1.7601
npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “install” “-g” "ionic"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! path C:\Users\GSAV\AppData\Roaming\npm\node_modules.staging\ansi-1344d
6bc
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename ‘C:\Users\GSAV\AppData\Roaming\npm\node_modules.staging\ansi-1344d6bc’ -> 'C:\Users\GSAV\AppData\Roaming\npm\node_modules\ionic\node_modules\cordova-lib\node_modules\ansi’
npm ERR! enoent ENOENT: no such file or directory, rename ‘C:\Users\GSAV\AppData\Roaming\npm\node_modules.staging\ansi-1344d6bc’ -> 'C:\Users\GSAV\AppData\Roaming\npm\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! C:`\Users\GSAV\npm-debug.log
npm ERR! code 1

I’m having the same problem as well. I’ve tried renaming and even mannually installing cordova-lib but none of that seems to have worked either.

Try running npm cache clean and reinstalling ionic

Thanks, but no joy after that I still get the error.

Completely uninstall ionic and cordova and then reinstall them again.

2 Likes

Worked spot on thanks :slight_smile: