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

Running pm2 deploy production setup #7

Open
wetherallCode opened this issue Jul 16, 2017 · 4 comments
Open

Running pm2 deploy production setup #7

wetherallCode opened this issue Jul 16, 2017 · 4 comments

Comments

@wetherallCode
Copy link

When I run pm2 deploy production setup I get this in return

--> Deploying to production environment
--> on host 67.205.178.187
○ hook pre-setup
[email protected]'s password:
mkdir: cannot create directory ‘/Users’: Permission denied
mkdir: cannot create directory ‘/Users’: Permission denied
mkdir: cannot create directory ‘/Users’: Permission denied

setup paths failed

Deploy failed

Why does this happen?

@YChafik
Copy link

YChafik commented Mar 31, 2018

I have the same issue on my AWS EC2 remote server. Any news?

@MichalZalecki
Copy link

MichalZalecki commented Oct 16, 2018

I had path : '$HOME/www/app and changing to path : '/home/deployer/www/app fiexed the issue

@coderavels
Copy link

You are trying to create the directory at the root level which is not permitted. Try changing the path to something like '/home/ec2-user/Users'.

To determine the actual folder path, ssh into your ec2 instance and run cd /home && ls. You will get to know the the folder under /home where you can create the directory (ec2-user for me).

@ismailkader
Copy link

when i install forever with the command "# npm install -g forever", i got this "▐ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine [email protected]: wanted: {"node":">=6"} (current: {"node":"4.2.6","npm":"3.5.2"})
loadDep:yargs → 200 ▀ ╢██████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
loadDep:urix ▐ ╢█████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
/usr/local/bin/forever -> /usr/local/lib/node_modules/forever/bin/forever
/usr/local/lib
└── [email protected]

npm WARN optional Skipping failed optional dependency /forever/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]

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

5 participants