Skip to content

Instantly share code, notes, and snippets.

@baalexander
Last active September 27, 2015 00:07

Revisions

  1. baalexander renamed this gist Jul 7, 2013. 1 changed file with 3 additions and 9 deletions.
    12 changes: 3 additions & 9 deletions npm_commands.md → npm_commands.bash
    Original file line number Diff line number Diff line change
    @@ -1,17 +1,11 @@
    Test a package locally before publishing to NPM:

    ```bash
    # Test a package locally before publishing to NPM:
    # Install the package in the global space
    npm install . -g
    # Package should show up in list
    npm ls -g
    # Can view contents of the installed package with
    ls ~/.npm/<package name>
    ```

    Publish a package to NPM:

    ```bash
    # Publish a package to NPM
    # Inside the root directory of the package
    npm publish
    ```
    npm publish
  2. baalexander revised this gist Aug 30, 2011. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion npm_commands.md
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,12 @@

    Test a package locally before publishing to NPM:

    ```bash
    # Install the package in the global space
    npm install . -g
    # Package should show up in list
    npm ls -g
    # Can view contents of the installed package with
    ls ~/.npm/<package name>
    ```

    Publish a package to NPM:
  3. baalexander created this gist Aug 30, 2011.
    16 changes: 16 additions & 0 deletions npm_commands.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@

    Test a package locally before publishing to NPM:

    ```bash
    # Install the package in the global space
    npm install . -g
    # Package should show up in list
    npm ls -g
    ```

    Publish a package to NPM:

    ```bash
    # Inside the root directory of the package
    npm publish
    ```