Skip to content
Snippets Groups Projects
Commit b2d61a01 authored by Bob Mottram's avatar Bob Mottram
Browse files

Install npm-cli

parent 0fe8bb92
No related branches found
No related tags found
No related merge requests found
......@@ -203,6 +203,7 @@ function mesh_install_nodejs {
cp "$rootdir/usr/bin/npm" "$rootdir/root/npm"
# deliberate second install of node
$mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm-cli@0.1.0 --save
$mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g node@${NODEJS_VERSION} --save
if [ -f "$rootdir/root/.npm-global/lib/node_modules/node/bin/node" ]; then
cp "$rootdir/root/.npm-global/lib/node_modules/node/bin/node" "$rootdir/usr/local/bin/node"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment