Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.

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


aaP_seifahmeed2

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?


aaPanel_Kern

aaP_seifahmeed2
Try adding directly with the command. Or install directly with the complete path: /www/server/nodejs/v16.14.0/bin/npm



aaPanel_Kern

/www/server/nodejs/v16.14.0/bin/npm install xxxx ?



aaPanel_Kern

Please give the result of executing the command, the version needs to be replaced with your actual version

aaP_seifahmeed2


avijit

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

aaPanel_Kern



aaPanel_Kern

Hello, is it possible to install it here?

avijit



avijit

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



avijit

As you can see, It's already installed!


aaP_pranavmankar1

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


aaPanel_Kern

Hello, try to set the command line version in the Node version manager in the Node project

aaP_pranavmankar1