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

Commit 01c99fd

Browse files
author
Jakob Rosenberg
authored
Merge pull request #311 from pycom/develop
new release - fix npm install at runtime
2 parents e4369ad + daa5def commit 01c99fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
} catch (err) {
1515
if (err.code === 'MODULE_NOT_FOUND') {
1616
console.log('serialport not installed. Installing...');
17-
require('child_process').execSync('npm install serialport');
17+
require('child_process').execSync('npm install serialport', { cwd: __dirname + '/..' });
1818
console.log('Installed serialport!');
1919
}
2020
}

0 commit comments

Comments
 (0)