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
640
中華製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
110
バーチャルバナナとリアルバナナ #iotlt #TouchDesigner
n0bisuke2
0
120
miiboとamiibo繋げてみた。 #miibo #amiibo #iotlt
n0bisuke2
1
300
骨折と入院とIoT #iotlt
n0bisuke2
1
250
中指立てたか判定IoT #iotlt #p5js
n0bisuke2
0
250
20240529セミナー #沖中塾
n0bisuke2
1
84
GPT-4oに遅刻理由を考えてもらうボタン #gpt_4o #iotlt #chatgpt
n0bisuke2
0
280
カフェでノートPCが盗難されたかどうかを検知するIoT #linedc #iotlt #obniz #protoout
n0bisuke2
1
320
息を吹きかけると○○選手の○○の人が”○ぶ”仕組みをobnizとSwitchBotで #iotlt
n0bisuke2
0
49
Other Decks in How-to & DIY
See All in How-to & DIY
3ヶ月でできる! 探査機自作ゼミ教材自作入門
sksat
6
1.3k
IoT×サーモに挑戦する第一歩
runrunsan
0
320
田中 is a new HelloWorld
akichika
1
280
在宅フルリモートワークを可能にするスキルと知識n連発! / how to more effective remoteworking
masaru_b_cl
3
950
【技術カンファレンス運営の裏側】Iwaken Lab 技術好き学生の近況報告 & ことみんさんに技術カンファレンス運営の裏側を聞いちゃう会
kotomin_m
4
1.1k
What I Talk About When I Talk About Social Media
idealhack
0
140
enebularを活用したNode-REDによるIoTシステム開発と運用
taokiuhuru
0
470
LT(Lightning Talk)のドキドキ感を共有しながら 応援してくれるBotを作ってみた!
scbc1167
0
330
APCのAWS認定マスターたちに聞いてみた
masuchoku
0
120
[너구리랑! 회고 밋업 2023] GTD & PARA -머릿속이 복잡하던 일상에 적용한 정리법 // 토르 님
develop_neoguri
1
420
CH32Vシリーズを楽しもう(74thの場合) / enjoy ch32v series
74th
1
460
[너구리랑! 회고 밋업 2023] CTO 1년 회고와 회고를 바탕으로 만든 프로젝트에 대한 회고 - 전문가가 되는 방법 // 한날 님
develop_neoguri
0
160
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
3
360
Making Projects Easy
brettharned
116
6k
StorybookのUI Testing Handbookを読んだ
zakiyama
28
5.4k
Designing Experiences People Love
moore
139
23k
Rails Girls Zürich Keynote
gr2m
94
13k
A designer walks into a library…
pauljervisheath
205
24k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.2k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.4k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.2k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
Code Review Best Practice
trishagee
65
17k
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ͬͯΈͨ OQNJHDO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ࠩ͋Γͦ͏
DOQNͬͯΈͨ DOQNW
DOQNͬͯΈͨ DOQNJOJUZ
JOJUͷࡍͷQBDLBHFKTPOಉ͡ { "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هࣄͩ͢ͷͰݟͯͶ