Revisions
-
iki revised this gist
Nov 6, 2014 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,9 +8,9 @@ 1. Either use the shell script or windows batch here instead. The shell script is forked from https://gist.github.com/othiym23/4ac31155da23962afd0e. See the discussion there. 2. Or use https://github.com/dylang/npm-check to interactively select which global/local packages to update ``` # install -
iki revised this gist
Nov 6, 2014 . 1 changed file with 17 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,21 @@ ## Solution 1. Either use the shell script or windows batch here instead. The shell script is forked from @othiym23 https://gist.github.com/othiym23/4ac31155da23962afd0e. See the discussion there. 2. Or use @dylang https://github.com/dylang/npm-check to interactively select which global/local packages to update ``` # install npm -g i npm-check # interactive update of global packages npm-check -u -g # interactive update for a project you are working on npm-check -u ```  -
iki revised this gist
Nov 6, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Update global top level npm packages ## Problem -
iki revised this gist
Nov 6, 2014 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,11 @@ # Update global top level npm packages without all their dependencies ## Problem `npm update -g` updates all global packages *and their dependencies*, see https://github.com/npm/npm/issues/6247. ## Solution Use the shell script or windows batch instead. The shell script is forked from https://gist.github.com/othiym23/4ac31155da23962afd0e. See the discussion there. -
iki revised this gist
Nov 6, 2014 . 2 changed files with 1 addition and 10 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,9 +0,0 @@ This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set -e set -x for package in $(npm -g outdated --parseable --depth=0 -q | cut -d: -f2) do npm -g install "$package" done -
iki revised this gist
Nov 6, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ ## Problem `npm update -g` updates all global packages *and their dependencies*, see https://github.com/npm/npm/issues/6247. ## Solution -
iki revised this gist
Nov 6, 2014 . 1 changed file with 11 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ # Scripts to update global top level npm packages without all their dependencies ## Problem `npm update -g` updates all global packages *and their dependencies*, see https://github.com/npm/npm/issues/6247). ## Solution Use the scripts provided here. Unix scripts are forked from https://gist.github.com/othiym23/4ac31155da23962afd0e. See the discussion there. -
iki revised this gist
Nov 6, 2014 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ @echo off setlocal enableextensions enabledelayedexpansion set packages= for /f "usebackq delims=: tokens=3" %%f in (`npm -g outdated --parseable --depth=0 -q`) do set packages=!packages! %%f :: Note: on windows, the first : separates drive in package path. call npm install -g%packages% exit /b %errorlevel% -
othiym23 created this gist
Sep 20, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ #!/bin/sh set -e set -x for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3) do npm -g install "$package" done This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ #!/bin/sh set -e set -x for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f2) do npm -g install "$package" done