瀏覽代碼

Test earlier

Bob Mottram 7 年之前
父節點
當前提交
f26a272f3b
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. 3
    2
      src/freedombone-utils-nodejs

+ 3
- 2
src/freedombone-utils-nodejs 查看文件

150
     fi
150
     fi
151
     cp "$rootdir/usr/bin/npm" "$rootdir/root/npm"
151
     cp "$rootdir/usr/bin/npm" "$rootdir/root/npm"
152
 
152
 
153
+    # TEST
154
+    grep -r "require('os').cpus().length" "$rootdir/.npm-global/lib/node_modules"/*
155
+
153
     # deliberately called again
156
     # deliberately called again
154
     nodejs_fix_cpu_detection
157
     nodejs_fix_cpu_detection
155
 
158
 
158
     $mesh_install_nodejs_prefix n --arch $N_ARCH ${NODEJS_VERSION}
161
     $mesh_install_nodejs_prefix n --arch $N_ARCH ${NODEJS_VERSION}
159
     cp "$rootdir/root/npm" "$rootdir/usr/bin/npm"
162
     cp "$rootdir/root/npm" "$rootdir/usr/bin/npm"
160
 
163
 
161
-    # TEST
162
-    grep -r "require('os').cpus().length" "$rootdir/.npm-global/lib/node_modules/npm"/*
163
 
164
 
164
     # deliberate second install of npm
165
     # deliberate second install of npm
165
     $mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save
166
     $mesh_install_nodejs_prefix npm install --arch=$NPM_ARCH -g npm@${NPM_VERSION} --save