node.jsrhel7node.js-connect

Install connect web server on RHEL linux with nodejs


I have installed nodejs 8.11.3 on RHEL 7.5. Next step is to install the connect web server by running the command from the nodejs installation directory. npm install connect

However, my problem I cannot find the nodejs installation directory in RHEL OS.

As per some suggestion on the internet I ran rpm -ql nodejs-8.11.3, but did not establish the nodejs installation directory.

Please advise how to install connect web server to work with nodejs in RHEL.

Thanks JJ


Solution

  • That isn't how Node.js packages work.

    You need to run npm install connect in the directory where you want to install the module. i.e. in your project directory.

    (And you should probably run it with --save to update your package.json file with the dependency you just added).