Skip to content

Commit

Permalink
better log for dependencies installation
Browse files Browse the repository at this point in the history
  • Loading branch information
fantinodavide committed Jul 9, 2022
1 parent 81a83d5 commit 26a72f0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const cp = require('child_process')
cp.execSync(`npm install`)
var installingDependencies = false;
const irequire = async module => {
try {
Expand All @@ -9,9 +8,11 @@ const irequire = async module => {
installingDependencies = true
console.log(`INSTALLING DEPENDENCIES...\nTHIS PROCESS MAY TAKE SOME TIME. PLEASE WAIT`)
}
cp.execSync(`npm install ${module}`)
// cp.execSync(`npm install ${module}`)
cp.execSync(`npm install`)
await setImmediate(() => { })
console.log(`"${module}" has been installed`)
// console.log(`"${module}" has been installed`)
console.log(`DEPENDECIES INSTALLED`)
}
console.log(`Requiring "${module}"`)
try {
Expand Down

0 comments on commit 26a72f0

Please sign in to comment.