最終更新:2023-10-26 (木) 04:34:50 (120d)  

npm
Top / npm

Node Packaged Modules

package manager for node.

http://npmjs.org/

パッケージ数

  • 20000以上

よく使うコマンド

npm init

npm install <package> /npm i

  • Install a package
  • パッケージを指定しない場合はpackage.jsonに記載されたパッケージが一括でインストールされる

npm update

npm search

パラメータ

  • -dは--loglevel infoの略
  • -sは--saveの略 package.jsonののdependencies欄に書き込み
  • -Dは--save-devの略 package.jsonののdevDependencies欄に書き込み

One Line Install

curl http://npmjs.org/install.sh | sh

npm/インストール先

コマンド

man

  • https://docs.npmjs.com/cli/npm
    Usage: npm <command>
    
    where <command> is one of:
        access, adduser, bin, bugs, c, cache, completion, config,
        ddp, dedupe, deprecate, dist-tag, docs, edit, explore, get,
        help, help-search, i, init, install, install-test, it, link,
        list, ln, login, logout, ls, outdated, owner, pack, ping,
        prefix, prune, publish, rb, rebuild, repo, restart, root,
        run, run-script, s, se, search, set, shrinkwrap, star,
        stars, start, stop, t, tag, team, test, tst, un, uninstall,
        unpublish, unstar, up, update, v, version, view, whoami
    
    npm <cmd> -h     quick help on <cmd>
    npm -l           display full usage info
    npm help <term>  search for help on <term>
    npm help npm     involved overview
    
    Specify configs in the ini-formatted file:
        /Users/tokkyo/.npmrc
    or on the command line via: npm <command> --key value
    Config info can be viewed via: npm help config
    
    npm@3.10.10 /usr/local/lib/node_modules/npm

Ubuntu/パッケージ

コマンド

  • arborist?
  • npm
  • npm-arborist?
  • npm-packlist?
  • npx
  • pacote?
  • qrcode-terminal?

依存

  • ca-certificates
  • node-abbrev?
  • node-agent-base?
  • node-ansistyles?
  • node-aproba?
  • node-archy?
  • node-asap?
  • node-cacache?
  • node-chalk?
  • node-chownr?
  • node-cli-table3?
  • node-colors?
  • node-columnify?
  • node-debug?
  • node-depd?
  • node-emoji-regex?
  • node-encoding?
  • node-glob?
  • node-got?
  • node-graceful-fs?
  • node-gyp
  • node-hosted-git-info?
  • node-https-proxy-agent?
  • node-ini?
  • node-ip?
  • node-ip-regex?
  • node-json-parse-better-errors?
  • node-jsonparse?
  • node-lru-cache?
  • node-minimatch?
  • node-minipass?
  • node-mkdirp?
  • node-ms?
  • node-negotiator?
  • node-nopt?
  • node-normalize-package-data?
  • node-npm-bundled?
  • node-npm-package-arg?
  • node-npmlog?
  • node-once?
  • node-promise-retry?
  • node-promzard?
  • node-read?
  • node-read-package-json?
  • node-rimraf?
  • node-semver?
  • node-ssri?
  • node-string-width?
  • node-strip-ansi?
  • node-tar?
  • node-text-table?
  • node-validate-npm-package-license?
  • node-validate-npm-package-name?
  • node-which?
  • node-wrappy?
  • node-write-file-atomic?
  • node-yallist?
  • nodejs