-
-
Save applideveloper/1999d7f2f46369e34669 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# npm自体をアップデート | |
npm update -g npm | |
# npm installのエイリアス | |
npm i | |
# tar.gzもインストールできる | |
npm i https://github.com/yukidarake/node-qc/archive/0.0.2.tar.gz | |
# githubからインストールできる | |
npm i -g yukidarake/node-qc | |
# package.jsonに保存 | |
npm i --save | |
npm i --save-dev | |
# dev-dependenciesのものはインストールしない | |
npm i --production | |
# package.jsonのバージョンを上げる | |
npm version major | |
npm version minor | |
npm version patch | |
npm version 2.0.1 | |
# 重複してインストールされているモジュールをまとめる | |
npm dedupe | |
# ローカルインストール時に、モジュールの実行ファイルがインストールされる場所 | |
./node_modules/.bin/mocha | |
# いろいろMakefile的なこともできる | |
# https://www.npmjs.org/doc/misc/npm-scripts.html | |
npm start | |
npm stop | |
npm prestart | |
npm test | |
# これを.bashrcに追記すればnpmコマンドの補完が可能になる | |
npm completion | |
# まだまだある・・・ | |
# https://www.npmjs.org/doc/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment