Skip to main content
Version: Next

For Node.js App

Configuration options

  • Get Node version: node -v
  • Node app root directory: /usr/src/app
  • Node package manager: npm, yarn
  • CLI: node, yarn, npm
  • Web framework: Express, Vue, React, AngularJS, Nuxt, Next, Koa, Vuepress, Gatsby.js
  • Process management tool: pm2

Deploy a Nodejs application

Refer to: App Runtime tutorials

Manage runtime

  • Upgrade Node package: To upgrade npm itself, the command is npm install npm -g.

  • Install Node package: npm install -g pm2

  • Use PM2 for startup: pm2 start app.js

Troubleshoot

NPM Prevent Permissions Errors?

Refer to: Fix NPM permissions

NPM broken?

Try npm cache clean or reinstall it again