• Discussion
  • How to run npm install in a running node js app in aapanel

Hello, I have a running node js app already in my aapanel but I want to ask how to run npm install to install the new dependencies that I added after installing the app for the first time?

If anyone know that would help me a lot
Thanks in advance.

    aaPanel_Kern
    The dependencies that I added not exist there. Also I need to install specific versions from these dependencies and that's not an option too. So is there a way to do it like a command or something?

      3 months later

      Command sudo /www/server/nodejs/v18.17.1/bin/npm init
      Output /usr/bin/env: ‘node’: No such file or directory

      aaPanel_Kern

        Hello, @aaPanel_Kern, I haven't received any response regarding issue #p68963. Can you please provide an update?

          As you can see, It's already installed!

          a year later

          root@vmi2234739:/www/wwwroot/example.com# /www/server/nodejs/v16.14.2/bin/npm run build

          build
          vite build

          /usr/bin/env: ‘node’: No such file or directory

          I am gettting this error