-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
I can't install pm2-logrotate for Windows #3456
Comments
hi @moto-a, Could you put here what you have in variable : process.env.HOME ? |
Thank you for your reply. process.env.HOME is undefined. |
And if you force a value to your HOME variable does it work ? |
@wallet77 Not an edge case, the value of |
chdir is the function which throw an error because HOME variable is empty. The best (generic) way to achieve this is to use require('os').homedir(). |
fix: #3456 Make module installation work on windows.
When can we expect this to be released? I am still facing this issue in 2.10.3 version. |
@preraksola
|
Hi @preraksola I will be released with 3.0.0 version. But I don't know when exactly. I hope in a few weeks. |
Awesome!! |
PM2 3.0.0 has been released: $ npm install pm2@latest -g Be aware of breaking changes, especially drop support for node 0.12. |
…ule installation work on windows
fix: Unitech#3456 Make module installation work on windows.
I tried install pm2-logrotate, but error was detected.
C:\Users\Administrator\AppData\Roaming\npm\node_modules\pm2\lib\API\Modules\Modularizer.js:148
process.chdir(process.env.HOME);
^
TypeError: Bad argument.
at C:\Users\Administrator\AppData\Roaming\npm\node_modules\pm2\lib\API\Modules\Modularizer.js:148:13
at C:\Users\Administrator\AppData\Roaming\npm\node_modules\pm2\node_modules\mkdirp\index.js:48:26
at FSReqWrap.oncomplete (fs.js:153:5)
Please tell me the solution.
Versions.
pm2 2.9.3
npm 5.5.1
node 8.9.3
Windows Server 2016 Standard
The text was updated successfully, but these errors were encountered: