Skip to content

Commit

Permalink
npm upgrade does not work : use update instead
Browse files Browse the repository at this point in the history
please see the log below to upgrade :

```
salad74@themint:~ > npm upgrade

Usage: npm <command>

where <command> is one of:
    add-user, adduser, apihelp, author, bin, bugs, c, cache,
    completion, config, ddp, dedupe, deprecate, docs, edit,
    explore, faq, find, find-dupes, get, help, help-search,
    home, i, info, init, install, isntall, issues, la, link,
    list, ll, ln, login, ls, outdated, owner, pack, prefix,
    prune, publish, r, rb, rebuild, remove, repo, restart, rm,
    root, run-script, s, se, search, set, show, shrinkwrap,
    star, stars, start, stop, submodule, tag, test, tst, un,
    uninstall, unlink, unpublish, unstar, up, update, v,
    version, view, whoami

npm <cmd> -h     quick help on <cmd>
npm -l           display full usage info
npm faq          commonly asked questions
npm help <term>  search for help on <term>
npm help npm     involved overview

Specify configs in the ini-formatted file:
    /home/salad74/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

npm@1.3.10 /usr/share/npm
```

whereas :

```
salad74@themint:~ > sudo npm update -g cleaver
npm http GET https://registry.npmjs.org/cleaver
npm http 304 https://registry.npmjs.org/cleaver
```
  • Loading branch information
SALES authored and SALES committed Apr 14, 2016
1 parent 0aa49d9 commit 876c504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Get it [on NPM](https://npmjs.org/package/cleaver):

```sh
npm install -g cleaver
# To update: npm upgrade -g cleaver
# To update: npm update -g cleaver
```

And run it like so:
Expand Down

0 comments on commit 876c504

Please sign in to comment.