docker image based on slim ubuntu with nvm, [email protected], npm, nrm for FE work.
- notice: the based version of node is v10.12.0, you can install another by nvm.
please notice your network, if there is a bad network, you can build youself by the methods below.
docker pull pomelott/nvm-node:latest
pull the source code from github : https://github.com/pomelott/docker-nvm-node,and welcome to start on github to encourage.
docker build -t nvm-node:local-v1 --no-cache --network=host .
- notice: whether to add --network=host depends on network condition
docker run -it pomelott/nvm-node /bin/bash
- show node list
nvm ls
- install node for another version
nvm install <version>
- change version
nvm use <version>
- show registry list
nrm ls
- change registry
nrm use taobao