Kaynağa Gözat

Experimental node install

Bob Mottram 7 yıl önce
ebeveyn
işleme
e02c86ddd3
1 değiştirilmiş dosya ile 9 ekleme ve 9 silme
  1. 9
    9
      src/freedombone-utils-nodejs

+ 9
- 9
src/freedombone-utils-nodejs Dosyayı Görüntüle

@@ -175,17 +175,17 @@ function mesh_install_nodejs {
175 175
 
176 176
     # update from the old debian nodejs version
177 177
     $mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g n@${NODEJS_N_VERSION} --save
178
-    $mesh_install_nodejs_prefix n --arch $N_ARCH ${NODEJS_VERSION}
179
-    nodejs_fix_cpu_detection
180
-    cp "$rootdir/root/npm" "$rootdir/usr/bin/npm"
181
-    cp "$rootdir/root/npm" "$rootdir/usr/local/bin/npm"
178
+    #$mesh_install_nodejs_prefix n --arch $N_ARCH ${NODEJS_VERSION}
179
+    #nodejs_fix_cpu_detection
180
+    #cp "$rootdir/root/npm" "$rootdir/usr/bin/npm"
181
+    #cp "$rootdir/root/npm" "$rootdir/usr/local/bin/npm"
182 182
 
183 183
     # deliberate second install of npm
184
-    $mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save
185
-    if [ -f "$rootdir/usr/local/bin/npm" ]; then
186
-        cp "$rootdir/usr/local/bin/npm" "$rootdir/usr/bin/npm"
187
-    fi
188
-    cp "$rootdir/usr/bin/npm" "$rootdir/root/npm"
184
+    #$mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save
185
+    #if [ -f "$rootdir/usr/local/bin/npm" ]; then
186
+    #    cp "$rootdir/usr/local/bin/npm" "$rootdir/usr/bin/npm"
187
+    #fi
188
+    #cp "$rootdir/usr/bin/npm" "$rootdir/root/npm"
189 189
     if [ -f "$rootdir/usr/bin/node" ]; then
190 190
         cp "$rootdir/usr/bin/node" "$rootdir/usr/local/bin/node"
191 191
     fi