title: NPM on LEMP cannot find module, wrong path
body: <p>Total Linux noob here. I am trying to configure a Pleroma development environment on DO droplet. Installed LEMP, installed SSL, installed PostgreSQL, installed Pleroma, so far so good.</p>
  
  <p>Then I installed Node, NPM, cloned Pleroma-FE (apparently it installs in <strong>/user/pleroma-fe</strong> folder). I am following the very brief build instructions here:</p>
  
  <p><a href="https://git.pleroma.social/pleroma/pleroma-fe" rel="nofollow noreferrer">https://git.pleroma.social/pleroma/pleroma-fe</a></p>
  
  <p>When I get to the command in those build instructions: <strong>npm run build</strong></p>
  
  <p>I am getting error: Error: Cannot find module '/user/build/build.js'</p>
  
  <p>It's because actual path to the build file is /user/pleroma-fe/build/build.js</p>
  
  <p>Apologies if this is a duplicate. I see other questions about this.</p>
  
  <p><a href="https://stackoverflow.com/questions/27864040/fixing-npm-path-in-windows-8-and-10">Fixing npm path in Windows 8 and 10</a></p>
  
  <p>and the reply seems to set the PATH. This answer might apply to my situation. But my question is: it is clearly already looking in a well defined path (which is different from all the other questions, which don't seem to have well defined path in the error message). But it is the wrong path. How do I make it look in the correct path? </p>
  
  <p>I tried the npm command and specified the complete path, and every variation. and none worked. So it seems fixing the path won't fix this problem. </p>
  
  <p>Sorry I do not currently know enough Linux to be able to fix this. I tried to tag this with Pleroma but I don't have enough reputation to create a new tag. Any help is much appreciated. Thanks in advance.</p>