Thursday, May 30, 2019

Install NPM, GULP on Linux

yum install npm

NPM

npm install -g express
npm install -g gulp gulp-cli typescript gulp-typescript ts-node
--------------------------------------------------------
For Enterprise Linux - Oracle Linux
Get latest epel repo.
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install nodejs npm
Set Proxy before installing above:
npm config set strict-ssl false
npm config set registry "http://registry.npmjs.org/"
npm config set proxy http://proxy.ibm.coim:8080
npm config set https-proxy http://proxy.ibm.coim:8080

Use n to manage node version
# node -v
v10.15.3

Logout and login again:
# node -v
v8.11.1

No comments:

Post a Comment