Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including nm with all npm packages installed. Try it out:

var nm = require("nm")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

nm v1.0.0

Tools for working directly with your node_modules


Manage your node_modules as a set of directories on disk.

$ nm rm module-name
module-name removed
$ nm rm module-name
Error: ENOENT: no such file or directory, lstat 'node_modules/wrappyy'

Try it out with npx:

$ npx nm rm module-name


This is a command line tool for doing physical operations on your node_modules with some minimal level of package.json and package-lock.json awareness. In contrast to npm, it is focused on physical operations on disk.



Remove from node-modules if it exists.

Planned options: -r remove and its transitive dependencies. -f -r remove and its transitive dependencies, even if they're also used by another module.

Planned Commands

These are not implemented yet.


Would be what llmod outputs.


Add packages w/o installing anything else. Read registry auth from .npmrc (no nm login however, use npm for that).


A suite of save option that can update package.json and package-lock.json


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free