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

pm2-windows-service fails on Node 14.0.0 #3

Closed
jessety opened this issue Apr 21, 2020 · 3 comments · Fixed by #4
Closed

pm2-windows-service fails on Node 14.0.0 #3

jessety opened this issue Apr 21, 2020 · 3 comments · Fixed by #4
Assignees
Labels
bug Something isn't working

Comments

@jessety
Copy link
Owner

jessety commented Apr 21, 2020

The pm2-service-install script in @innomizetech/pm2-windows-service fails on Windows with Node 14.0.0. Everything functions as expected with Node 12.16.2.

The following was captured with pm2-installer 2.1.1, node v14.0.0, and npm 6.14.4 on win32-10.0.18363:

4/21/2020 11:46:59 AM:  Running pm2-service-install..
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (Use `node --trace-warnings ...` to show where the warning was created)
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
4/21/2020 11:47:00 AM:  (node:3948) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
@advilm
Copy link

advilm commented Apr 23, 2020

I have the same problem

@ptkdev
Copy link

ptkdev commented May 3, 2020

+1

@jessety
Copy link
Owner Author

jessety commented May 9, 2020

This is an issue with pm2-windows-service. Given that it's is essentially unmaintained, I don't expect it to be fixed anytime soon.

Rewriting and replacing pm2-windows-service seemed to be the only viable option going forward, so I did. The new service is in the rewrite-service branch.

It works with Node 14, and should be a lot easier to maintain going forward.

I'll merge #4 once I've tested it across a broader spectrum of Windows releases. Please try it out if you're feeling adventurous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants