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
aaP_seifahmeed2
aaPanel_Kern
Which command you mean?
aaPanel_Kern
/www/server/nodejs/v16.14.0/bin/npm install xxxx ?
aaP_seifahmeed2
aaPanel_Kern
Didn't work.
aaPanel_Kern
Please give the result of executing the command, the version needs to be replaced with your actual version
avijit
Command sudo /www/server/nodejs/v18.17.1/bin/npm init
Output /usr/bin/env: ‘node’: No such file or directory
avijit
aaPanel_Kern Please resolve.
aaPanel_Kern
avijit
aaPanel_Kern already installed.
avijit
Hello, @aaPanel_Kern, I haven't received any response regarding issue #p68963. Can you please provide an update?
aaPanel_Kern
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