lrf 1 year ago
parent
commit
cea06d7cf7
4 changed files with 4 additions and 4 deletions
  1. 1 1
      .github/workflows/nodejs.yml
  2. 1 1
      .travis.yml
  3. 1 1
      appveyor.yml
  4. 1 1
      server.js

+ 1 - 1
.github/workflows/nodejs.yml

@@ -35,7 +35,7 @@ jobs:
         node-version: ${{ matrix.node-version }}
 
     - name: Install Dependencies
-      run: npm i -g npminstall && npminstall
+      run: npm i -g npminstall@5 && npminstall
 
     - name: Continuous Integration
       run: npm run ci

+ 1 - 1
.travis.yml

@@ -3,7 +3,7 @@ language: node_js
 node_js:
   - '10'
 before_install:
-  - npm i npminstall -g
+  - npm i npminstall@5 -g
 install:
   - npminstall
 script:

+ 1 - 1
appveyor.yml

@@ -4,7 +4,7 @@ environment:
 
 install:
   - ps: Install-Product node $env:nodejs_version
-  - npm i npminstall && node_modules\.bin\npminstall
+  - npm i npminstall@5 && node_modules\.bin\npminstall
 
 test_script:
   - node --version

+ 1 - 1
server.js

@@ -2,7 +2,7 @@
 // eslint-disable-next-line strict
 const egg = require('egg');
 
-const workers = Number(process.argv[2] || require('os').cpus().length);
+const workers = 1;
 egg.startCluster({
   workers,
   baseDir: __dirname,