Code Monkey home page Code Monkey logo

Comments (3)

jessety avatar jessety commented on August 14, 2024 5

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!

Screen Shot 2020-09-12 at 22 31 31 PM

from pm2-installer.

rossm-mf avatar rossm-mf commented on August 14, 2024

I was using windows-terminal and for some reason it was not working. Now after few reboots, it's fine.

from pm2-installer.

jessety avatar jessety commented on August 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.