If your NPM Installation seems to be taking forever or never seems to complete you should try these steps.
All of this is assuming that you have placed your application files in the proper locations and that your package.json is defined correctly.
- Log into your cPanel and go to "Setup Node.js App"
- Click the pencil icon to edit your application.
- Click on the command shown at the top to copy the command to your clipboard.
- Access the "Terminal" in your cPanel, or alternatively log into SSH with your cPanel username and Password.
- Inside of the Terminal or SSH - paste in the command you copied from Step 3.
- Now that you are in your application's virtual environment run the command:
npm set strict-ssl false
- Now that you have set strict-ssl to false, you can run the installation:
npm install