Skip to content

Commit

Permalink
fix(test-node): save dev first
Browse files Browse the repository at this point in the history
  • Loading branch information
scarqin committed Mar 14, 2023
1 parent 945c282 commit e0a13db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/node/test-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"koa": "2.13.4",
"koa-body": "5.0.0",
"pm2": "5.2.0",
"postcat-sync-swagger": "1.0.0",
"postman-sandbox": "^4.2.3",
"socket.io": "4.5.3",
"ws": "8.8.1",
Expand Down
2 changes: 1 addition & 1 deletion src/node/test-server/request/pc/extension-manage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const isElectron = !!process.versions['electron'];
//TODO install locally
const installExtension = (extension, version = 'latest') => {
return new Promise(resolve => {
const ls = spawn('npm', ['i', `${extension}@${version}`]);
const ls = spawn('npm', ['i', '--no-save', `${extension}@${version}`]);
ls.on('close', function (code) {
console.log(`child process exited with code :${code}`);
return resolve(true);
Expand Down

0 comments on commit e0a13db

Please sign in to comment.