Unable to install fresh copy of IONIC

Hi All,
I was trying to install the latest IONIC CLI version. I completely uninstalled Node.js from windows.
Reinstalled it with NPM.

Now, when i did

  npm install -g ionic

I got the following ouput

c:\>npm install -g ionic
c:\usr\local\ionic -> c:\usr\local\node_modules\ionic\bin\ionic
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-pre-gyp@0.6.36 
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 
'c:\usr\local\node_modules\ionic\node_modules\fsevents\node_modules\node-pre-gyp' -> 

added 345 packages and updated 1 package in 24.476s

Now, i am doing

    ionic -v

which is giving

   c:\>ionic -v
   'ionic' is not recognized as an internal or external command,
    operable program or batch file.

What am i doing wrong here?
Also tried NVM, where i installed Node 6.11.2 with NPM 3.10.10 and got the same output.


 node -v : v6.11.3
 npm -v : 5.0.0
 $ npm list -g --depth=0
      +-- ionic@3.10.3
      `-- npm@5.0.0

      npm ERR! missing: node-pre-gyp@^0.6.36, required by fsevents@1.1.2

Your paths are a bit strange with \usr\local on a Windows machine. Anything we should know about?

One solution: Uninstall your node, install nvm (or nvm-windows if you are on Windows), install a new node (which includes npm) with this, then install ionic and cordova again and try your command again. The problem should be gone.

You were right. My path was messed up.

1 Like