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.
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?
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
Which command you mean?
/www/server/nodejs/v16.14.0/bin/npm install xxxx ?
aaPanel_Kern
Didn't work.
Please give the result of executing the command, the version needs to be replaced with your actual version
Command sudo /www/server/nodejs/v18.17.1/bin/npm init
Output /usr/bin/env: ‘node’: No such file or directory
aaPanel_Kern Please resolve.
aaPanel_Kern already installed.
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!
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
Hello, try to set the command line version in the Node version manager in the Node project