@charginghawk I am using this currently in my dockerfile:<code> ENV NVM_DIR /root/.nvm
ENV NODE_VERSION 8
#7
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash \
&& source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default \
&& npm install http-server </code>
nvm ls | grep -e 'default -> v8.9.3'
v8.9.3
set as the default right now)
➜ nvm ls
v8.9.3
default -> v8.9.3
node -> stable (-> v8.9.3) (default)
stable -> 8.9 (-> v8.9.3) (default)
iojs -> N/A (default)
lts/* -> lts/carbon (-> v8.9.3)
lts/argon -> v4.8.7 (-> N/A)
lts/boron -> v6.12.2 (-> N/A)
lts/carbon -> v8.9.3
TERM=dumb nvm alias default
Readme.md
want a PR?
nvm alias x
prints out what "x" is :-)
nvm --help
should also probably say those things if it doesn't already
.../.nvm/versions/node/v9.4.0
. I can't seem to figure out how to get nvm to install to the directory that I'm currently in. Is there a command I can run for this?
require('<global package name>')
just work for me? if yes, can someone please guide me thru steps to fix this.