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
中華製npmのCNPMがある模様 #iotlt
Search
n0bisuke
December 15, 2020
How-to & DIY
1
630
中華製npmのCNPMがある模様 #iotlt
IoTLT vol70での発表です。 CNPMってあるんですねぇ〜
https://iotlt.connpass.com/event/196360
インストール怖いので自己責任でお願いします。
n0bisuke
December 15, 2020
Tweet
Share
More Decks by n0bisuke
See All by n0bisuke
いぬぬウォッチャー - オレトク賞オンライン決勝 #ヒーローズリーグ
n0bisuke2
0
85
バーチャルバナナとリアルバナナ #iotlt #TouchDesigner
n0bisuke2
0
110
miiboとamiibo繋げてみた。 #miibo #amiibo #iotlt
n0bisuke2
1
290
骨折と入院とIoT #iotlt
n0bisuke2
1
230
中指立てたか判定IoT #iotlt #p5js
n0bisuke2
0
240
20240529セミナー #沖中塾
n0bisuke2
1
73
GPT-4oに遅刻理由を考えてもらうボタン #gpt_4o #iotlt #chatgpt
n0bisuke2
0
260
カフェでノートPCが盗難されたかどうかを検知するIoT #linedc #iotlt #obniz #protoout
n0bisuke2
1
300
息を吹きかけると○○選手の○○の人が”○ぶ”仕組みをobnizとSwitchBotで #iotlt
n0bisuke2
0
37
Other Decks in How-to & DIY
See All in How-to & DIY
LTのモチベーション
akrolayer
1
570
スクフェス福岡前夜祭 LT
pokotyamu
0
200
それっぽいポッドキャストの作り方
khirata
2
280
enebular Update for the second half of 2023
taokiuhuru
0
170
在宅フルリモートワークを可能にするスキルと知識n連発! / how to more effective remoteworking
masaru_b_cl
3
900
とある航空会社の飛行機の乗り方をお教えします。/20240913-lt
kwada
3
240
IoT×サーモに挑戦する第一歩
runrunsan
0
310
Dirbtinis intelektas dizainerio gyvenime
lekevicius
0
200
Earthquake and Kominka
ramtop
0
140
Terra Charge|普通充電器ご利用ガイドブック / Terra Charge Ordinary Charger Guidebook
contents
1
130
Career Opportunities In WordPress
wchk2023
0
240
メイカーフェア東京、深セン、台北、サンフランシスコにみるFactory Automationみ/製造業み
takasumasakazu
0
1k
Featured
See All Featured
The Cult of Friendly URLs
andyhume
78
6.1k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
A Tale of Four Properties
chriscoyier
157
23k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
290
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.2k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
0
97
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
17
2.3k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
Transcript
*P5-5WPM த՚OQNͷ$/1.͕͋Δ༷ OCJTVLF ΈΜͳͬͯͨʁ
ੁݪͷͼ͚͢ dotstudio, Inc. ɾEPUTUVEJPגࣜձࣾ ๏ਓ͚*P5ݚमϓϩτλΠϐϯάݚमͳͲ ϓϩτλΠϐϯάઐεΫʔϧʮϓϩτΞτελδΦʯߍ ɾݸਓ׆ಈ ຊ࠷େͷ*P5ίϛϡχςΟʮ*P5-5ʯओ࠵ .JDSPTPGU.71 -*/&"1*&YQFSU
OPCJTVLFTVHBXBSB
ϓϩτλΠϐϯάઐεΫʔϧʮϓϩτΞτελδΦʯ ϓϩάϥϛϯάΑΓ"1*πʔϧΛ͍͜ͳٕ͢ज़ΛֶͿ ϓϩτλΠϐϯά͚ͩͰऴΘΒͤͣΞτϓοτ͢Δ·Ͱ ଔۀ੍࡞$".1'*3&ͰΫϥυϑΝϯσΟϯά࣮ࢪ ՝Λݟ͚ͭͯࣗͰ࣮͠ɺൃ৴Ͱ͖ΔਓࡐΛҭ͍ͯͯΔ ϓϩτΞτελδΦ
OQN ɾ/PEF1BDLBHF.BOBHFS ɾ/PEFKTʹඥ࡞͘ύοέʔδϚωʔδϟʔͱύοέʔδͷϨδετϦ ɾ/PEFKTͰͳΜͪΌΒ͢Δͱ͖ʹ΄΅ඞਢͰར༻ ɾ*P5͢Δͱ͖ར༻͢Δγʔϯଟ͍ ɾ/PEF3&%ཪͰ͜ΕͬͯΔ ɾ৭ʑͳύοέʔδϚωʔδϟʔ QJQ OVHFU FUD
ͷதͰ࠷ଟΒ͍͠
DOQN ɾத՚൛ͷOQN ɾ ڪΒ͘ ۚ६ʹΑͬͯΞΫηεग़དྷͳ͍ύοέʔδΛ͍͍ͨͭ ɾ͍উखOQNͱಉ༷ ɾOQNܦ༝ͰΠϯετʔϧ ɾதࠃʹߦͬͨ࣌ͷ։ൃͰ͑ͦ͏
DOQN ɾத՚൛ͷOQN ɾ ڪΒ͘ ۚ६ʹΑͬͯΞΫηεग़དྷͳ͍ύοέʔδΛ͍͍ͨͭ ɾ͍উखOQNͱಉ༷ ɾOQNܦ༝ͰΠϯετʔϧ ɾதࠃʹߦͬͨ࣌ͷ։ൃͰ͑ͦ͏ ɾউखͳҹͰ͕͢ใൈ͔Εͦ͏ͰΠϯετʔϧ͕গ͠ා͍
DOQN͕OQNʹ͍Δͱ͍͏ϝλͳঢ়گ
ͳ͔ͥ 5BPCBP͕ϨδετϦΛ࣋ͬͯΔ IUUQTEFWFMPQFSBMJZVODPNNJSSPS/1. GSPNUOQN ɾ5BPCBPʹϨδετϦ͞Ε͍ͯΔ ɾ5BPCBPதࠃͷΦϯϥΠϯϞʔϧ ɾ 5BPCBPͬͯ"84తͳಈ͖ͯ͠ΔΜͰ͔͢Ͷʁ
DOQNͬͯΈͨ
DOQNͬͯΈͨ OQNJHDOQN
DOQNͬͯΈͨ OQNJHDOQN ˞OQNܦ༝ͰΠϯετʔϧҎ֎ʹ%-ग़དྷΔ༷
ͱΓ͋͑ͣΠϯετʔϧ͕͍ OQNJHDOQN OQN8"3/EFQSFDBUFESFRVFTU!SFRVFTUI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.js",
"scripts": { "test": "echo \"Error: no test specified\" && exit }, "keywords": [], "author": "", "license": "ISC", "dependencies": { } } { "name": "test-cnpm", "version": "1.0.0", "description": "", "main": “index.js", "dependencies": { }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC" }
OQY DOQYNRUUTVCUUFTUIMPDBMIPTU
OQY·ͩͳͦ͞͏ DOQYNRUUTVCUUFTUIMPDBMIPTU ˞DPNNBOEOPUGPVOEDOQY
.255νϟϨϯδ JPUMUͳͷͰ
OQNJOTUBMMNRUU DOQYNRUUTVCUUFTUIMPDBMIPTU
OQNJOTUBMMNRUU DOQNJNRUU ͱΓ͋͑ͣΊͪΌͯ͘λΠϜΞτ
DOQNTFUUJNFPVUͰ্ݶ৳͢ DOQNTFUUJNFPVU Cnpm install error: Connect timeout for 5000ms stepping
on the pi t IUUQTXXXQSPHSBNNFSTPVHIUDPNBSUJDMF ຊՈnpm ʹ͋Δ….? ͳ͍͔ (ௐ͖Εͯͳ͍)
ͪͳΈʹDOQNݶఆػೳ͍͔ͭ͘ DOQNTZOD DOQNJCZOQNSFBDUOBUJWF DOQNDIFDL
OQNJOTUBMMNRUU DOQYNRUUTVCUUFTUIMPDBMIPTU ͱΓ͋͑ͣΊͪΌͯ͘λΠϜΞτ
OQNJOTUBMMNRUU DOQNJNRUU λΠϜΞτઃఆͨ͠Β͏·͍͖͘·ͨ͠ɻ
OQNNRUUDOQN ͳ͘ૄ௨ OQYNRUUTVCIUFTUNPTRVJUUPPSHUOCJTVLF )FMMPDOQN const mqtt = require('mqtt'); const client
= mqtt.connect('mqtt://test.mosquitto.org'); client.on('connect', () => { client.publish('n0bisuke', 'Hello cnpm'); });
#-&νϟϨϯδ
࣌ؒΕ
࣌ؒΕ DOQNJOPCMF ৭ʑΤϥʔͰ͚ͨͲ ௨ৗOQNͰಉͬ͡Ά͍
·ͱΊ ɾDOQN͕͋Δʂ ɾதࠃʹ͍ͬͯOQN͏ͱ͖ʹྑ͍͔ ɾதࠃʹ͍ͯ71/ͳ͠ͷڥͰ(PPHMFܥͷԿ͔Λ͍͍ͨ ͱ͖ͱ͔ͳͷ͔ͳ ɾຊʹ͍Δʹ͍͚ͩͳͷͰɺಛʹ͏ඞཁແ͠ ɾωλͱͯͬͯ͠Δͱ໘ന͍͔ ͜ͷωλͰ2JJUBهࣄͩ͢ͷͰݟͯͶ