Skip to content

Instantly share code, notes, and snippets.

@fengmk2
Created August 10, 2017 03:27
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 fengmk2/69e5fbbc0ca4665b596dbfd5ed7abf1e to your computer and use it in GitHub Desktop.
Save fengmk2/69e5fbbc0ca4665b596dbfd5ed7abf1e to your computer and use it in GitHub Desktop.
Taipei: npm install VS yarn VS npminstall on next.js hello world

Repo

https://github.com/zeit/next.js/tree/master/examples/hello-world

Results

Installer Time
npm 0m21.958s
yarn 0m22.732s
npminstall 0m16.547s
time npm i

> fsevents@1.1.2 install /Users/mk2/git/github.com/zeit/next.js/examples/hello-world/node_modules/fsevents
> node install

[fsevents] Success: "/Users/mk2/git/github.com/zeit/next.js/examples/hello-world/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

> uglifyjs-webpack-plugin@0.4.6 postinstall /Users/mk2/git/github.com/zeit/next.js/examples/hello-world/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js

npm WARN hello-world@1.0.0 No repository field.

added 599 packages in 21.195s

real	0m21.958s
user	0m26.002s
sys	0m8.271s
time yarn
yarn install v0.20.3
info No lockfile found.
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
[4/4] πŸ“ƒ  Building fresh packages...
success Saved lockfile.
✨  Done in 22.32s.

real	0m22.732s
user	0m13.164s
sys	0m7.036s
time npminstall
βœ” Installed 3 packages
βœ” Linked 442 latest versions
[fsevents] Success: "/Users/mk2/git/github.com/zeit/next.js/examples/hello-world/node_modules/_fsevents@1.1.2@fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
βœ” Run 2 scripts
peerDependencies link glob@7.1.1 in /Users/mk2/git/github.com/zeit/next.js/examples/hello-world/node_modules/_glob-promise@3.1.0@glob-promise unmet with /Users/mk2/git/github.com/zeit/next.js/examples/hello-world/node_modules/glob(7.1.2)
βœ” All packages installed (481 packages installed from npm registry, used 15s, speed 42.61kB/s, json 445(628.65kB), tarball 0B)

real	0m16.547s
user	0m12.762s
sys	0m5.780s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment