Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #311 from pycom/develop
Browse files Browse the repository at this point in the history
new release  - fix npm install at runtime
  • Loading branch information
Jakob Rosenberg authored Apr 6, 2022
2 parents e4369ad + daa5def commit 01c99fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
} catch (err) {
if (err.code === 'MODULE_NOT_FOUND') {
console.log('serialport not installed. Installing...');
require('child_process').execSync('npm install serialport');
require('child_process').execSync('npm install serialport', { cwd: __dirname + '/..' });
console.log('Installed serialport!');
}
}
Expand Down

0 comments on commit 01c99fd

Please sign in to comment.