Skip to content

Commit

Permalink
(module) install languange module relative to pm2 root path #2675
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarchaud committed Feb 1, 2017
1 parent 61a7197 commit 05d572b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/API/Modules/Modularizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,8 @@ function uninstallModule(CLI, module_name, cb) {
}

function installLangModule(module_name, cb) {
var node_module_path = path.join(__dirname, '../../..');

var install_instance = spawn(cst.IS_WINDOWS ? 'npm.cmd' : 'npm', [
'install', module_name, '--prefix', node_module_path, '--loglevel=error'
'install', module_name, '--prefix', cst.PM2_ROOT_PATH, '--loglevel=error'
],{
stdio : 'inherit',
env: process.env,
Expand Down

1 comment on commit 05d572b

@kevincollins7
Copy link

@kevincollins7 kevincollins7 commented on 05d572b Feb 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @vmarchaud I made the same changes you made here and am still getting the ENOENT error in the log. In the console when I attempt to start an app I get the same error:

Interpreter C:\Users\Me\AppData\Roaming\npm\node_modules\pm2\node_modules\.bin\ts-node does not seems to be available

I can see that this time typescript and ts-node directories were created in C:\Users\Me\.pm2\node_modules

Please sign in to comment.