File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,11 @@ module.exports = function(path) {
72
72
details . linkGlobalModules = function ( modules ) {
73
73
74
74
// Ensure node_modules directory exists
75
- const fs = require ( 'fs' ) ;
76
- if ( ! fs . existsSync ( 'node_modules' ) ) {
77
- fs . mkdirSync ( 'node_modules' ) ;
75
+ const nodeModulesPath = this . cwd + '/node_modules' ;
76
+ if ( ! fs . existsSync ( nodeModulesPath ) ) {
77
+ fs . mkdirSync ( nodeModulesPath ) ;
78
78
}
79
-
79
+
80
80
// Setup nvm, use npm version specified in .nvmrc
81
81
let cmd = "bash -c 'export NVM_DIR=/opt/nvm && source /opt/nvm/nvm.sh && nvm use " + this . version + " && " ;
82
82
cmd += "cd " + this . cwd + " && " ;
@@ -86,7 +86,6 @@ module.exports = function(path) {
86
86
cmd += "unlink node_modules/" + modules [ i ] + " > /dev/null 2>&1 ; npm link " + modules [ i ] + " > /dev/null 2>&1 ; " ;
87
87
}
88
88
cmd += "'" ;
89
- console . log ( cmd ) ;
90
89
91
90
// Update npm links
92
91
try {
You can’t perform that action at this time.
0 commit comments