NVM for windows error after installing nodejs - node.js

I'm completely new to nodejs and nvm , I installed nvm latest version and installed two nodejs versions.
C:\WINDOWS\system32>nvm list
10.10.0
08.12.0
I'm getting this error when I try to use nodejs
C:\WINDOWS\system32>nvm use 10.10.0
exit status 1: 'C:\Users\iClick' is not recognized as an internal or external command,
operable program or batch file.
Both nodejs folders are sitting inside nvm folder at
C:\Users\iClick Digital\AppData\Roaming\nvm
and these are system env var paths
NVM_Home C:\Users\iClick Digital\AppData\Roaming\nvm
NVM_SYMLINK C:\Programe Files/nodejs

Related

Install Node.js under MSYS2 (2022)

I've Node.js + NPM installed in Windows (using the official MSI installer). The path containing their executables is both on system and user PATH environment variables. When I run node in MSYS2 it's not recognized.
Other things I considered:
I did try pacman -Ss nodejs on MSYS2, and it outputs nothing.
Update /home/USER/.profile, .bashrc and .bash_profile with:
export PATH=${PATH};"C:/Program Files/nodejs";
Yet Node.js commands aren't recognized. Another related question, Installing nodejs and npm on MSYS2 (2017), has outdated answers which don't solve my problem.
Notes:
I did restart the terminal after PATH changes.

NPM is not recognised while nodist is showing the version of node

I installed nodist and 2 versions of node when I run cmd prompt as admin I can see the version of node v4.4.5
However when I go to my project folder and run cmd prompt from that folder and run npm install I'm getting 'npm is not recognizes as an internal or external command'. I tried nodist from the same folder and I got 'nodist' is not recognised as internal or external command
Any idea whats the problem?
When you opening shell, try to run:
nodevars
Then you'll able to run npm and all globally installed modules.

Cordova not recognized

I'm Running Windows 10 Node v5.8.0 and Cordova 6.0.0
I'm trying to install and use Cordova, The installation is successful but it gets installed to a file on my desktop the I ones installed a npm package (I long ago deleted that file - Node recreates it for me) instead of installing on the default location..
If I call Cordova from the local file where node has placed it, it will be recognized (but I can't create a new project next to it). and wherever I call Cordova outside of that location I'm getting this error message - 'cordova' is not recognized as an internal or external command,
operable program or batch file.
(This is the command I used for the installation - npm install -g cordova)

What location does Node.js needs to be installed

I am trying to setup a project to work with Grunt. I need to install Node.js for that to run. I have downloaded and installed Node.js in c:\programfiles.
However when I try running npm install in my project c:\Grunt-proj , I get an error 'npm' is not recognized as an internal or external command.
Can someone help me with where to install Node.js? I am trying to follow this tutorial-
http://24ways.org/2013/grunt-is-not-weird-and-hard/
Many thanks,
The location is fine. I also have installed it in Program Files. But if you need to run the command npm from a command prompt then you need to add it to the path of the system. In my case I have C:\Program Files\nodejs

Error loading modules in nodejs, node and nom installed using repos Ubuntu

I have installed nodejs and npm using repos in Ubuntu 12.10, and generally I install a module using
sudo npm install -g nodemodule
but when I try to do var mod = require("nodemodule") I receive an error I have to use require("/usr/lib/node_modules/nodemodule"), how canI fix this?
You probably need to set the NODE_PATH environment variabele:
export NODE_PATH=/usr/lib/node_modules/:$NODE_PATH
After that, try your Node script again. If it works, place the line above in your shells' startup file (usually ~/.bashrc) so it will always be set when you log in.

Resources