Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All dependencies of pm2 module activated as individual modules #1692

Closed
erikverheij opened this issue Oct 14, 2015 · 4 comments
Closed

All dependencies of pm2 module activated as individual modules #1692

erikverheij opened this issue Oct 14, 2015 · 4 comments

Comments

@erikverheij
Copy link

When I install a pm2 module all dependencies are loaded as modules.

After running pm2 install pm2-logrotate the folder /home/username/.pm2/node_modules is filled with pm2-logrotate and its dependencies. Somehow the dependencies are not nested. All dependencies are just installed in the root folder. The folder /home/username/.pm2/node_modules/pm2-logrotate has no folder node_modules.

All these dependencies are loaded as pm2 modules on the next startup.

  • I'm using version 0.15.7.
  • The problem also arises for other pm2 modules (tested with pm2-webshell).
  • I'm on a AWS Linux AMI (based on CentOS/RHEL)
  • node v0.12.7
  • npm v3.3.6

image

image

@Unitech
Copy link
Owner

Unitech commented Oct 14, 2015

How did you installed node.js?
Right now please delete the folder ~/.pm2/node_modules

@Unitech
Copy link
Owner

Unitech commented Oct 14, 2015

#1674 duplicate

@Unitech Unitech closed this as completed Oct 14, 2015
@erikverheij
Copy link
Author

I installed node with;

# Install with yum (outdated version)
yum install nodejs npm --enablerepo=epel
# Install node version manager
npm install -g n
# Install desired version
n v0.12
# Remove the outdated version
yum remove nodejs
# Remove packages of the outdated version 
rm /usr/lib/node_modules
# Check version
node -v

Some more debug info..; these warnings show up after pm2 install pm2-logrotate

image

Unitech added a commit that referenced this issue Oct 15, 2015
@Unitech
Copy link
Owner

Unitech commented Oct 29, 2015

PM2 0.15.8 including this fix is published

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants