Node.js menu in Plesk shows error: The file does not exist

Follow

Comments

4 comments

  • Avatar
    Tre Stange

    Thank you for this info, but for the life of me I *still* can't find the app.js file. Plesk says it's installed, but I don't see any evidence of node in my domain. The 'file does not exist' notification is still next to the app.js in the Application Startup File row. Thoughts?

     

    0
    Comment actions Permalink
  • Avatar
    Nelson Leiva

    Hi Tre Stange,

    This message means that there is no such file in the application root.

    For example, there is no app.js file in /httpdocs/. However, if you create a file app.js in that same directory /httpdocs/, no error will be shown.

    In case applications is using another startup file, for example server.js, you can just click on app.js and specify another startup file name.

    0
    Comment actions Permalink
  • Avatar
    Oscar

    npm WARN lifecycle npm is using /opt/plesk/node/12/bin/node but there is no node binary in the current PATH. Use the --scripts-prepend-node-path option to include the path for the node binary npm was executed with.
    sh: node: command not found

    0
    Comment actions Permalink
  • Avatar
    Marc Vidal

    Hi Oscar!

    The error that was mentioned in your screenshot was related to a different issue. Please, apply the solution described in the following KB article: https://support.plesk.com/hc/en-us/articles/360000644114

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request