NVM & Node.js – Recommended install for all users

Here is what I did: Installed nvm in /opt/nvm as root. Seemed like an appropriate location. # git clone git@github.com:creationix/nvm.git /opt/nvm Created the directory /usr/local/nvm. This is where the downloads will go ($NVM_DIR) # mkdir /usr/local/nvm Create the directory /usr/local/node. This is where the NPM global stuff will go: # mkdir /usr/local/node Created a file … Read more

nvm ls-remote command results in “N/A”

Update with comment from LJHarb, who maintains nvm.sh LJHarb suggests that a typical problem causing this is that “the SSL certificate authorities installed in your system have gone out of date”. Checking this and trying to fix this would be a better first step. In the case where you believe there is a problem on … Read more

How to run “nvm” in “oh my zsh”?

You can use zsh-nvm or enable it yourself by adding following lines to your ~/.zshrc export NVM_DIR=~/.nvm [ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh” Extra: For faster shell initialization, I use lazynvm which only loads node when needed lazynvm() { unset -f nvm node npm export NVM_DIR=~/.nvm [ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh” # … Read more

Difference between NPM and NVM

nvm (Node Version Manager) is a tool that allows you to download and install Node.js. Check if you have it installed via nvm –version. curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh | bash npm (Node Package Manager) is a tool that allows you to install javascript packages. Check if you have it installed via npm –version. npm comes with … Read more

Can’t use NVM from root (or sudo)

The below list of commands (source: digitalocean) seems to fix the problem WARNING!!!! In some circumstances, these commands can break your system! Make sure you know what do these command do!!! related n=$(which node); \ n=${n%/bin/node}; \ chmod -R 755 $n/bin/*; \ sudo cp -r $n/{bin,lib,share} /usr/local The above command is a bit complicated, but … Read more

Homebrew installs nvm but nvm can’t be found afterwards?

Did you follow the instructions listed in the caveats? [~] brew info nvm nvm: stable 0.20.0, HEAD https://github.com/creationix/nvm Not installed From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/nvm.rb ==> Caveats Add the following to $HOME/.bashrc, $HOME/.zshrc, or your shell’s equivalent configuration file: source $(brew –prefix nvm)/nvm.sh Node installs will be lost upon upgrading nvm. Add the following above the source line … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)