Forrest logo
back to context overview

npm

List of commands for npm:

  • npm:ai:02983 Installs forrest CLI globally using npm
    $ npm install -g forrest-cli
    try on your machine
    explain this command
  • npm:ai:2baa3 Installs npm globally
    $ npm install -g npm
    try on your machine
    explain this command
  • npm:ai:8c882 This command installs software using npm package manager for Node.js
    $ npm install ${package-name}
    try on your machine
    explain this command
  • npm:ai:a465a Uninstalls forrest CLI globally on Linux.
    $ npm uninstall -g forrest-cli
    try on your machine
    explain this command
  • npm:ai:c803f Install Electron with version 11.4.7 globally
    $ npm install -g electron@11.4.7
    try on your machine
    explain this command
  • npm:ai:db6eb Installs the reth package globally
    $ npm install -g reth
    try on your machine
    explain this command
  • npm:init Interactively create a `package.json` file.
    $ npm init
    try on your machine
    explain this command
  • npm:module:global:remove-all Remove all global npm modules
    $ npm ls -gp --depth=0 | awk -F/ '/node_modules/ && !/\/npm$/ {print $NF}' | xargs npm -g rm
    try on your machine
  • npm:module:local:remove Uninstall a local NPM package
    $ npm uninstall ${name}
    try on your machine
  • npm:module:reinstall-all Reinstall all NPM dependencies
    $ rm -rf node_modules && npm install
    try on your machine
  • npm:modules:install:global List all globally installed NPM packages
    $ npm list -g --depth=0
    try on your machine
    explain this command
  • npm:package:version Find version of an installed npm package
    $ npm list ${package_name}
    try on your machine
  • npm:packages:find:unused Find unused npm packages in package.json
    $ npx depcheck
    try on your machine
  • npm:packages:tree Print a tree of locally installed dependencies.
    $ npm list
    try on your machine
    explain this command
  • npm:packages:why Show why an npm package is installed.
    $ npm-why ${package_name}
    try on your machine
    explain this command
  • npm:run:dev Run a npm based application in development mode.
    $ npm run dev
    try on your machine
    explain this command
  • npm:test:run Execute tests in an npm managed application
    $ npm test
    try on your machine
    explain this command
  • npm:tldr:42a3b npm: Download a specific version of a package and add it to the list of dependencies in `package.json`.
    $ npm install ${module_name}@${version}
    try on your machine
    explain this command
  • npm:tldr:84f19 npm: Download a package and add it to the list of dev dependencies in `package.json`.
    $ npm install ${module_name} --save-dev
    try on your machine
    explain this command
  • npm:tldr:a8430 npm: Download a package and install it globally.
    $ npm install --global ${module_name}
    try on your machine
    explain this command
  • npm:tldr:adbd7 npm: List top-level globally installed modules.
    $ npm list --global --depth=${0}
    try on your machine
    explain this command
  • npm:tldr:d5311 npm: Download all the packages listed as dependencies in package.json.
    $ npm install
    try on your machine
    explain this command
  • npm:warp:0ef24 Update NPM to the latest version
    $ npm update -g npm
    try on your machine
    explain this command
  • npm:warp:213fc Update each dependency in package.json to the latest version (NPM)
    $ npm i -g npm-check-updates
    $ ncu -u
    $ npm install
    try on your machine
    explain this command
  • npm:warp:cd2b6 Install npm package from GitHub directly
    $ npm install ${repo}#${branch}
    try on your machine
    explain this command
back to context overview