Ensure npm on correct version
This commit is contained in:
parent
fad36f4a0b
commit
28701beb59
|
@ -131,11 +131,10 @@ cp /usr/bin/nodejs /usr/bin/node
|
||||||
/usr/bin/curl -0 -L https://npmjs.org/install.sh | sh
|
/usr/bin/curl -0 -L https://npmjs.org/install.sh | sh
|
||||||
npm install -g n@${NODEJS_N_VERSION} --save
|
npm install -g n@${NODEJS_N_VERSION} --save
|
||||||
n ${NODEJS_VERSION}
|
n ${NODEJS_VERSION}
|
||||||
npm upgrade -g npm@{NPM_VERSION}
|
npm upgrade -g npm@{NPM_VERSION} --save
|
||||||
npm install -g npm@{NPM_VERSION}
|
npm install -g pug@2.0.0-beta6 --save
|
||||||
npm install -g pug@2.0.0-beta6
|
npm install -g graceful-fs@4.1.10 --save
|
||||||
npm install -g graceful-fs@4.1.10
|
npm install -g minimatch@3.0.3 --save
|
||||||
npm install -g minimatch@3.0.3
|
|
||||||
exit 0
|
exit 0
|
||||||
EOF
|
EOF
|
||||||
chmod +x /root/install-nodejs.sh
|
chmod +x /root/install-nodejs.sh
|
||||||
|
@ -152,6 +151,9 @@ EOF
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ensure npm on correct version
|
||||||
|
npm install -g npm@{NPM_VERSION} --save
|
||||||
|
|
||||||
mark_completed $FUNCNAME
|
mark_completed $FUNCNAME
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue