--- tags: DevOps --- nodeJS virutal env === ## ``` sh [ -d .env ] || virtualenv -p python3 .env . .env/bin/activate pip install -e git+https://github.com/ekalinin/nodeenv.git#egg=nodeenv nodeenv env # 2023/10/02 update: nodeenv --without-ssl --node=20.8.0 --npm=10.1.0 --jobs=4 env ## 2023/04/06 update: nodeenv --without-ssl --node=18.15.0 --npm=9.5.0 --jobs=4 env ## 2021/12/02 node: nodeenv --without-ssl --node=14.11.0 --npm=6.14.8 --jobs=4 env nodeenv --without-ssl --node=19.3.0 --npm=9.2.0 --jobs=4 env . env/bin/activate node -v npm -v ## if you need to install specific node and npm version ## nodeenv --without-ssl --node=0.4.3 --npm=0.3.17 --jobs=4 env-4.3 # Activate nodeJS virtual env . .env/bin/activate && . env/bin/activate # Now you can use all npm library npm install npm start # Deactivate all virtual env deactivate_node && deactivate ``` #### Reference ``` https://github.com/ekalinin/nodeenv ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up