Skip to content

Instantly share code, notes, and snippets.

@cannelflow
Created May 4, 2016 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cannelflow/1308b691dc9aa41e43a003a1c6857ffd to your computer and use it in GitHub Desktop.
Save cannelflow/1308b691dc9aa41e43a003a1c6857ffd to your computer and use it in GitHub Desktop.
It's fine, of course, to explicitly check for outdated modules,
and then run `npm install` to pull them in.
However, if you want to be a bit more lazy about it, there's a special
npm command that will UPDATE all of your deps to the max version you
allow in your package.json.
Can you guess what command that might be? (`npm help` might help you)
Update all your deps to the latest version possible, and then
run `how-to-npm verify` to pick up your delicious green banner.
cannelflow1:~/workspace $ npm update
npm ERR! Linux 4.2.0-c9
npm ERR! argv "/home/ubuntu/.nvm/versions/node/v4.4.3/bin/node" "/home/ubuntu/.nvm/versions/node/v4.4.3/bin/npm" "update"
npm ERR! node v4.4.3
npm ERR! npm v3.8.8
npm ERR! code E404
npm ERR! 404 missing : async
npm ERR! 404
npm ERR! 404 'async' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/workspace/npm-debug.log
cannelflow1:~/workspace $ how-to-npm verify
Oops! You are still using the outdated version!
#########################################
### YOUR SOLUTION IS NOT CORRECT! ###
#########################################
@sonichanxiao
Copy link

Do you find a solution for this? I am also stuck in here.

@Zenthad
Copy link

Zenthad commented Apr 10, 2018

I am also stuck on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment