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
620
中華製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
バーチャルバナナとリアルバナナ #iotlt #TouchDesigner
n0bisuke2
0
100
miiboとamiibo繋げてみた。 #miibo #amiibo #iotlt
n0bisuke2
1
280
骨折と入院とIoT #iotlt
n0bisuke2
1
210
中指立てたか判定IoT #iotlt #p5js
n0bisuke2
0
230
20240529セミナー #沖中塾
n0bisuke2
1
63
GPT-4oに遅刻理由を考えてもらうボタン #gpt_4o #iotlt #chatgpt
n0bisuke2
0
240
カフェでノートPCが盗難されたかどうかを検知するIoT #linedc #iotlt #obniz #protoout
n0bisuke2
1
280
息を吹きかけると○○選手の○○の人が”○ぶ”仕組みをobnizとSwitchBotで #iotlt
n0bisuke2
0
31
GPTsとラズパイ5で監視カメラを作ってみた #iotlt #chatgpt #raspberrypi
n0bisuke2
0
480
Other Decks in How-to & DIY
See All in How-to & DIY
Chaos V-Ray Render Pool (使い方)
renderpool
0
410
コロナ後の世界メイカーフェア事情 高須正和@Nico-Tech Shenzhen #KMMF2024 #KariyaMMF2024
takasumasakazu
0
250
[너구리랑! 회고 밋업 2023] 비전공자 PM의 우당탕탕 2023년 // 의현 님
develop_neoguri
0
100
How to get hundreds of organic backlinks through statistics link building
ronishehu
1
150
Terra Charge|EVコンセントご利用ガイドブック / Terra Charge EV Charger Guidebook
contents
0
1k
What I Talk About When I Talk About Social Media
idealhack
0
110
Career Opportunities In WordPress
wchk2023
0
220
地域JAWSの現状とベストプラクティス
awsjcpm
0
360
球体型ロボットと複合現実を活用したマルチエージェントシステム - M5stack Japan Tour 2024 Spring Osaka
tichise
0
190
Chaos V-Ray Render Pool Manual [EN]
renderpool
0
380
enebularを活用したNode-REDによるIoTシステム開発と運用
taokiuhuru
0
430
本気でコミュニティを成功させたいなら_株式会社コミュカル Mitz
comucal
PRO
0
820
Featured
See All Featured
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
Rails Girls Zürich Keynote
gr2m
94
13k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
111
49k
The Pragmatic Product Professional
lauravandoore
31
6.3k
Done Done
chrislema
181
16k
For a Future-Friendly Web
brad_frost
175
9.4k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
4 Signs Your Business is Dying
shpigford
180
21k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
16
2.1k
It's Worth the Effort
3n
183
27k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
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 OQ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name": "test-cnpm", "version": "1.0.0", "description": "", "main": "index.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هࣄͩ͢ͷͰݟͯͶ