Announcement

Collapse
No announcement yet.

NodeJS - Virtual Environment

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NodeJS - Virtual Environment

    Love the NodeJS integration so far. When I enter the command it shows in cpanel to enter the virtual environment, and then I run an npm install with save

    npm install socket.io --save

    It install and works, but it gives some warnings about the package.json file not being there, so it doesnt write the dependencies. Ive also tried changing the current dir when running the command to the actual directory where the package.json file exists. Same issue.

    The path where the app and package.json files are is:
    /home/$username/public_html/nodejs/$app/

    And the environment is
    /home/$username/nodevenv/public_html/nodejs/$app/8

  • #2
    For anyone interested, my particular problem was running the commands as the root user. You need to be logged in as the account user.

    Comment

    Working...
    X