Pro Yearly is on sale from $80 to $50! »

npm update -g npm

npm update -g npm

npm command mini tips and news for front-end developer at CodeGrid 3rd anniversary party in Tokyo

1d5ca7d8f17f15de4272e1ec7ef7abac?s=128

Daijirō Wachi

May 08, 2015
Tweet

Transcript

  1. @watilde CodeGrid 3rd anniversary party in Tokyo npm update -g

    npm
  2. whoami • Daijiro Wachi - @watilde • Software Engineer at

    GREE, Inc. • interested in Chromium / cssnext / npm
  3. my fav articles in • ͕ͦ͜஌Γ͍ͨɺFlexible Box • ϏϧυπʔϧΞϥΧϧτ •

    WebFontsࣗ༝ࣗࡏ 3प೥͓ΊͰͱ͏͍͟͝·͢ ɹɹɹɹ ɹЊЊ ɹɹɹɹɹ ʛŋŋʛ ɹɹɹɹɹ ʛ̟ʛ ɹɹɹɹɹ ʛʔʛ ɹɹɹɹɹ ʛɹʛ ɹɹɹɹɹ ʛɹʛ ɹɹɹɹɹ ʛɹʛ ɹɹɹɹɹ ʛɹʛ ɹɹɹɹɹ ʛɹʛ `ʊʊʊʊʊ/ ɹ ʛ |ɹ ʊʊʊʊɹɹ) |ɹ/ɹɹ \ |
  4. main subject Web੍࡞͕΋ͬͱָʹͳΔΑ͏ͳ npm-cliͷ৽ػೳΛ ࣌ܥྻʹԊͬͯ঺հ

  5. semantic versioning 2 . 5 . 1 MAJOR Version Number

    MINOR Version Number PATCH Version Number
  6. including npm version
 in each node/io.js version node -v npm

    -v v0.8.28 v1.2.30 v0.10.38 v1.4.28 v0.12.0 v2.5.1 io@v2.0.0 v2.9.0
  7. node -v npm -v v0.8.28 v1.2.30 v0.10.38 v1.4.28 v0.12.0 v2.5.1

    io@v2.0.0 v2.9.0 including npm version
 in each node/io.js version
  8. minor version list from v2.5.0 to v2.9.0 • v2.5.0 (2015-01-29)

    • v2.6.0 (2015-02-12) • v2.7.0 (2015-02-26) • v2.8.0 (2015-04-09) • v2.9.0 (2015-04-23) npm wombat
  9. v2.5.0 (2015-01-29) npm outdatedʹ--longΦϓγϣϯΛ෇͚Δͱ ύοέʔδͷλΠϓ͕දࣔ͞ΕΔΑ͏ʹ

  10. v2.6.0 (2015-02-12) • npm logoutͷ௥Ճ • Ϣʔβʔ໊ͱύεϫʔυΛ༻͍ͨೝূτʔΫϯͷൃߦ • engineStrictͷഇࢭʹؔ͢Δܯࠂͷ௥Ճ •

    peerDependenciesͷڍಈมߋʹؔ͢Δܯࠂͷ௥Ճ
  11. topic (2015-2-14) ύοέʔδ͕1ϲ݄Ͱ10ԯμ΢ϯϩʔυ

  12. topic (2015-2-19) jQuery Plugin Registry͕ಡΈऔΓઐ༻ʹͳΓ npmར༻Λਪ঑͢ΔΞφ΢ϯε͞ΕΔ

  13. v2.7.0 (2015-02-26) • npm restartͷڍಈΛਖ਼ৗԽ • npm lsʹ--dev,  --prodΦϓγϣϯΛ௥Ճ •

    npm initʹ--scopeΦϓγϣϯ͕௥Ճ • npm runͷεΫϦϓτϦετͷදࣔΛվળ
  14. v2.8.0 (2015-04-09) • GitHubলུه๏(org/repo)Λgit+sshʹม׵͢Δ୅ΘΓʹ
 git:͔git+https:ͷURLΛอଘ • লུه๏͕࢖ΘΕ͍ͯΔ৔߹͸ɺ
 git protocol, SSH,

    and HTTPSͷॱʹΫϩʔϦϯάΛࢼ͢ • promptܗࣜͰΫϩʔϯΛՄೳʹ • ࣮ݧతػೳͱͯ͠ɺgithub:, gist:, bitbucket:, gitlab:
 Λ༻͍ͨলུه๏Λαϙʔτ
  15. topic (2015-4-21) Cordova͕Core PluginΛnpmʹҠಈ͢Δͱൃද Cordova plugins registry͔Βnpm΁Ҡಈ͢Δπʔϧ։ൃத

  16. v2.9.0 (2015-04-23) • npm versionͰ௥Ճ͞Εͨgitͷλάʹ౰ͯΒΕΔ
 όʔδϣϯͷϓϨϑΟοΫε͕ઃఆՄೳʹมߋ • npm outdated΍npm updateΛ࣮ߦ͢Δࡍʹɺ


    ϩʔΧϧʹ͋ΔϞδϡʔϧ΋ؚ·ΕΔΑ͏ʹมߋ
  17. npm update -g npm

  18. [PR] NodeSchool Internal Day in Tokyo • 5/23 (౔) 13:30

    ~ 19:00, CyberAgent͞ΜͷηϛφʔϧʔϜ • Node.jsʹ͍ͭͯɺಋೖ͔ΒτϨϯυ·Ͱ
 ΈΜͳͰֶͿָ͍͠Πϕϯτ • ࠓճ͸શੈքಉ࣌։࠵ ٩(ˊᗜˋ*)و
  19. Happy Hacking!