Give only access to the current directory, and any specific directories the tool uses.
- Install NPM.
- Download the Node.js binary distribution.
- Extract the
node_modules
directory from it and put it in/usr/local/lib
, let it be owned by root. - (Skip the
node
binary and everything else.)
- Create any needed files and directories with the
nodejs/setup.sh
script. - Put the scripts in
nodejs/bin
somewhere in your PATH.
- Use the
node
script to run Node.js. - Use the
node-repl
script to run Node.js in interactive mode (REPL). - Use the
npm-global
to install stuff from NPM in/usr/local/lib/node_modules
, don't forget the-g
flag. Binary links will not work. - Use the
npm
script to manage a project. - Use the
npm-multi
script to manage a multi-module project, start it in project root dir and pass the name of the module as first argument. - Use the
npx
script to run npx.
- Build the Docker image and create any needed files and directories with the
maven/setup.sh
script. - Put the scripts in
maven/bin
somewhere in your PATH.
- Build the Docker image and create any needed files and directories with the
sbt/setup.sh
script. - Put the scripts in
sbt/bin
somewhere in your PATH.