My guess is that the NPM global path has not been added to your windows path.
These are the steps to try:
- First verify that the command just installed can run. The output contains the full path to the command installed, just copy and paste it to the command line. In your case it might be something like this
%APPDATA%\Roaming\npm\iconic -v
Lets assume that works. That means that the command was successfully installed and will run, now we need to add it to your PATH so you can run it from the command line.
- Next, Press Windows key and type "path" and select "Edit environment variables for your account". From here. Add or append the path
%APPDATA%\Roaming\npm
to your PATH variable, and save the results.
Once it is on your PATH you can run it from any command shell window.
- Next, start a new command shell (e.g., Windows+R, cmd, Enter) and then type the command
iconic -v
. Viola, it should work without requiring the full path to the script.
I'm doing most of this from memory so hopefully it's correct. But if it needs some tweeks, let me know and I'll update the answer.
For completness, this install didn't actually fail. The lines with fsevents are warnings. The fsevents package is only designed to work on Mac Unix so these warnings can be safely ignored.
As Suraj Rao mentioned, also see Nodejs cannot find installed module on Windows?.