Question
How do I install packages with npm as a cPanel user?
Answer
If the server has the required packages installed for NodeJS to work, NPM packages can be installed from the command line with the npm install command. cPanel users can install packages via npm using the steps below:
- Access the server's command line as the cPanel user via SSH or "Terminal" in cPanel.
Use the
npm installcommand to install the desired package.Note: "debug" is an example package. You will need to replace "debug" with yoru desired package.
# npm install debug
added 2 packages, and audited 4 packages in 487ms
found 0 vulnerabilities
Comments
0 comments
Article is closed for comments.