How to install and run Node.js application in Plesk?

Comments

1 comment

  • Avatar
    Karl May

    The first line for CLI is wrong, because this version:
    export PATH=$PATH:/opt/plesk/node/18/bin
    shows with
    # which npm
    /usr/local/bin/npm

    So the line must be change to:
    export PATH=/opt/plesk/node/18/bin:$PATH
    because this adds the line to the beginning of PATH. Now:
    # which npm
    /opt/plesk/node/18/bin/npm

    0

Please sign in to leave a comment.

Have more questions? Submit a request