From 652c3a08ab82b4ffeab9ca998c814cf01d3dec5a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 3 Apr 2018 14:17:47 +0100 Subject: [PATCH] Copying npm --- src/freedombone-utils-nodejs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-utils-nodejs b/src/freedombone-utils-nodejs index e3ce8913..066860a3 100755 --- a/src/freedombone-utils-nodejs +++ b/src/freedombone-utils-nodejs @@ -165,7 +165,7 @@ function mesh_install_nodejs { nodejs_fix_cpu_detection $mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save if [ -f "$rootdir/usr/local/bin/npm" ]; then - cp "$rootdir/usr/local/bin/npm" /usr/bin/npm + cp "$rootdir/usr/local/bin/npm" "$rootdir/usr/bin/npm" fi cp "$rootdir/usr/bin/npm" "$rootdir/root/npm" @@ -181,7 +181,7 @@ function mesh_install_nodejs { # deliberate second install of npm $mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save if [ -f "$rootdir/usr/local/bin/npm" ]; then - cp "$rootdir/usr/local/bin/npm" /usr/bin/npm + cp "$rootdir/usr/local/bin/npm" "$rootdir/usr/bin/npm" fi cp "$rootdir/usr/bin/npm" "$rootdir/root/npm" if [ -f "$rootdir/usr/bin/node" ]; then