Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Node.js Package Management
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Shuhei Kagawa
February 19, 2015
Programming
0
120
Node.js Package Management
Node.js には詳しくないけど Grunt などでしょうがなく使っている人向けの npm の話。
Shuhei Kagawa
February 19, 2015
Tweet
Share
More Decks by Shuhei Kagawa
See All by Shuhei Kagawa
Profiling Node.js apps on production
shuhei
0
940
Building a Pixel Art Editor with Elm
shuhei
1
850
Redux Middleware Wars (Japanese)
shuhei
8
1.9k
Redux Middleware Wars (English)
shuhei
0
200
Draw Animated Chart on React Native
shuhei
0
8.9k
Angular 2 Offline Compiler
shuhei
0
5.5k
Weird Attractors
shuhei
0
910
Angular 2 @ JS Ojisan #6-3
shuhei
1
3.1k
Introduction to Angular 2
shuhei
2
170
Other Decks in Programming
See All in Programming
grapheme_strrev関数が採択されました(あと雑感)
youkidearitai
PRO
1
190
Rubyと楽しいをつくる / Creating joy with Ruby
chobishiba
0
200
LangChain4jとは一味違うLangChain4j-CDI
kazumura
1
120
Beyond the Basics: Signal Forms
manfredsteyer
PRO
0
110
2026/02/04 AIキャラクター人格の実装論 口 調の模倣から、コンテキスト制御による 『思想』と『行動』の創発へ
sr2mg4
0
640
AI駆動開発の本音 〜Claude Code並列開発で見えたエンジニアの新しい役割〜
hisuzuya
3
430
Rails Girls Tokyo 18th GMO Pepabo Sponsor Talk
yutokyokutyo
0
180
ふん…おもしれぇ Parser。RubyKaigi 行ってやるぜ
aki_pin0
0
120
Event Storming
hschwentner
3
1.3k
Head of Engineeringが現場で回した生産性向上施策 2025→2026
gessy0129
0
200
AI巻き込み型コードレビューのススメ
nealle
2
2.4k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
340
Featured
See All Featured
The Language of Interfaces
destraynor
162
26k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
GraphQLとの向き合い方2022年版
quramy
50
14k
Context Engineering - Making Every Token Count
addyosmani
9
720
The browser strikes back
jonoalderson
0
740
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
190
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
280
YesSQL, Process and Tooling at Scale
rocio
174
15k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Transcript
Node.js ͷύοέʔδ ཧ 2015/2/19 @ M3 Tech Talk Shuhei Kagawa
• ϑϩϯτΤϯυͷϏϧυʹ Grunt Λ͍ͬͯΔɻ • ϩʔΧϧͰޭ͍ͯ͠ΔͷʹɺJenkins ͰϏϧυ ͕ࣦഊ͢Δɾɾɾɻ
npm • npmjs.com • 12 ສ ύοέʔδɺ1754 ສμϯϩʔυ/ • ϓϩδΣΫτͷ
package.json ͱ͍͏ϑΝΠϧʹґଘ ϞδϡʔϧΛهड़ɻ • npm install ͢ΔͱϓϩδΣΫτσΟϨΫτϦҎԼͷ node_modules ͱ͍͏σΟϨΫτϦʹΠϯετʔϧ͞ ΕΔɻ
UNIX ֶ Write programs that do one thing and do
it well ؔҰݸ͚ͩͷϞδϡʔϧ݁ߏ͋Δɻ
ࣗͷϓϩδΣΫτ ௨ৗɺͬͱ͘ਂ͘ ωετ͍ͯ͠Δ
ґଘϞδϡʔϧͷࢦఆ • package.json ʹόʔδϣϯͱͱʹهड़ɻ • ϑΝδʔͳόʔδϣϯࢦఆ͕σϑΥϧτʢnpm install —saveʣɻ • ~1.2.3
= 1.2.3 Ҏ্ 1.3.0 ະຬ ^1.2.3 = 1.2.3 Ҏ্ 2.0.0 ະຬ ^0.2.3 = 0.2.3 Ҏ্ 0.3.0 ະຬ • semver ͕ ݫີʹकΒΕ͍ͯΕ breaking change ͳ͍ ͣɾɾɾ • ͪΖΜී௨ʹࢦఆ͢Δ͜ͱ͕Ͱ͖Δɻ
ґଘύοέʔδͷ όʔδϣϯݻఆ • ϓϩδΣΫτ͕ґଘ͢ΔϥΠϒϥϦͷόʔδϣ ϯݻఆͰ͖Δɻ • ͕ɺϥΠϒϥϦ͕ґଘ͍ͯ͠ΔϥΠϒϥϦʢଙҎԼʣ ͷόʔδϣϯࢦఆͰ͖ͳ͍ʂʂʂ
npm shrinkwrap • node_modules ͷύοέʔδͷόʔδϣϯΛ npm-shrinkwrap.json ʹอଘɻ • ͜ΕΛόʔδϣϯཧ͢ΕɺͲ͜Ͱ·Ͱಉ ͡όʔδϣϯͷύοέʔδΛΠϯετʔϧͰ͖Δɻ
• ͙͢Կઍߦͱ͔ʹͳΔ͚Ͳɾɾɾɻ
·ͱΊ • খ͍͞Ϟδϡʔϧ͕ͨ͘͞Μωετ͍ͯ͠Δɻ • ௨ৗɺଙҎԼͷϞδϡʔϧόʔδϣϯݻఆͰ͖ͳ ͍ɻ • Ͳ͏ͯ͠ݻఆ͚ͨ͠Ε npm shrinkwrapɻ