title: Guess is it npm conflict in digitalocean and pm2 status errored
body: <p>my local machine is use nvm to control node version. i create a nextJs app and deploy it into my server which host in digitalOcean cause pm2 status errored.</p>
  <p>Is there possible happen cause conflict since node different version?</p>
  <p>Page show <strong>502 bad gateway</strong></p>
  <p>Try to debug</p>
  <blockquote>
  <p>pm2 logs</p>
  </blockquote>
  <pre><code>11|selfpat | /tmp/yarn--1619166551597-0.6282906920762092/yarn:3
  11|selfpat | exec &quot;/usr/bin/node&quot; &quot;/usr/share/yarn/bin/yarn.js&quot; &quot;$@&quot;
  11|selfpat |      ^^^^^^^^^^^^^^^
  11|selfpat | 
  11|selfpat | SyntaxError: Unexpected string
  11|selfpat |     at wrapSafe (internal/modules/cjs/loader.js:979:16)
  11|selfpat |     at Module._compile (internal/modules/cjs/loader.js:1027:27)
  11|selfpat |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
  11|selfpat |     at Module.load (internal/modules/cjs/loader.js:928:32)
  11|selfpat |     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
  11|selfpat |     at /usr/lib/node_modules/pm2/lib/ProcessContainer.js:303:25
  11|selfpat |     at wrapper (/usr/lib/node_modules/pm2/node_modules/async/internal/once.js:12:16)
  11|selfpat |     at next (/usr/lib/node_modules/pm2/node_modules/async/waterfall.js:96:20)
  11|selfpat |     at /usr/lib/node_modules/pm2/node_modules/async/internal/onlyOnce.js:12:16
  11|selfpat |     at WriteStream.&lt;anonymous&gt; (/usr/lib/node_modules/pm2/lib/Utility.js:186:13)
  </code></pre>
  <p>DO Server:</p>
  <pre><code>$ yarn --version &gt; 1.22.5
  $ npm --version &gt; 6.14.8
  $ node --version &gt; v14.15.1
  which node &gt; /usr/bin/node
  </code></pre>
  <p>Run this before in DO Terminal shell not any respond</p>
  <blockquote>
  <p>npm config set scripts-prepend-node-path true</p>
  </blockquote>
  <p>Local machine</p>
  <pre><code>$ yarn --version &gt; 1.22.10
  $ npm --version &gt; 6.14.12
  $ node --version &gt; v14.16.1
  which node &gt; .nvm/versions/node/v14.16.1/bin/node
  </code></pre>