Comments (3)
Hi @rossm-mf,
That looks like an error that occurs when you attempt to invoke pm2
from a non-admin terminal. For the CLI to communicate with the instance of pm2
running in the service, it needs to be running in an elevated console. Otherwise it'll fail, attempt to spawn a daemon itself, then fail at that as well.
Make sure to right click and say "Run as Administrator" when starting a new console session.
Hope this is helpful!
from pm2-installer.
I was using windows-terminal and for some reason it was not working. Now after few reboots, it's fine.
from pm2-installer.
Hey @rossm-mf,
I'm a pretty big fan of Windows Terminal, but it does come with a few caveats that I've noticed while working on this project. One is that (unlike the standard Powershell interface) you can't right click the icon in the task bar and select "run as admin." Instead, you have to search for it in the Start menu and select "run it as admin" from there. I believe this restriction has something to do with packaging the app for the Windows store, but I'm not entirely certain about that.
Another issue I found is that opening up a new tab inherits the environmental variables from the initial Terminal process, so it won't contain the latest ENV values. For example, after the pm2-installer
setup completes, it requests that you start a new terminal session with the latest machine-level environmental variables before invoking pm2
. If you open a new tab instead of a completely new Terminal window, the new tab will be loaded with the ENV values from before the setup ran and pm2
won't be able to read the $env:PM2_HOME
value.
Regardless of these minor roadblocks, I'm very excited about Windows Terminal and can't wait for it to ship standard in Windows.
Glad to hear everything is working for you now! Hope this was helpful anyway.
from pm2-installer.
Related Issues (20)
- Could not start service
- dont work with cluster mode HOT 1
- Potentially Dangerous PATH Variables C:\ProgramData\npm\npm : builtin\users HOT 1
- pm2 start issue HOT 3
- NPM as spawned child process does not work HOT 1
- Unrecognized token in source text - setup script
- No permission to Set-Permissions HOT 2
- pm2 logrotate got stuck with install
- Failed to set permissions on "C:\ProgramData\pm2\home" HOT 7
- Apps started according to pm2, but they are not running any service HOT 1
- Will this help me avoid "terminal" spawn issue ? HOT 1
- App shows as started on pm2 ls but it's frozen and doesn't get a PID. HOT 5
- In-memory PM2 is out-of-date HOT 1
- Offline install error HOT 1
- Moving PM2 logs output directory outside C:\ProgramData
- Error: ENOENT: no such file or directory
- No "shutdown" message is sent when the service is stopped
- Network Drive issue
- NPM as exec child process does not work
- There's always error when using this package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pm2-installer.