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

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