Upgrade to Pro — share decks privately, control downloads, hide ads and more …

中華製npmのCNPMがある模様 #iotlt

n0bisuke
December 15, 2020

中華製npmのCNPMがある模様 #iotlt

IoTLT vol70での発表です。 CNPMってあるんですねぇ〜
https://iotlt.connpass.com/event/196360
インストール怖いので自己責任でお願いします。

n0bisuke

December 15, 2020
Tweet

More Decks by n0bisuke

Other Decks in How-to & DIY

Transcript

  1. 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" }
  2. DOQNTFUUJNFPVUͰ্ݶ৳͹͢ DOQNTFUUJNFPVU Cnpm install error: Connect timeout for 5000ms stepping

    on the pi t IUUQTXXXQSPHSBNNFSTPVHIUDPNBSUJDMF ຊՈnpm ʹ͋Δ….? ͳ͍͔΋ (ௐ΂͖Εͯͳ͍)
  3. OQNŠNRUUŠDOQN ໰୊ͳ͘ૄ௨ OQYNRUUTVCIUFTUNPTRVJUUPPSHUOCJTVLF )FMMPDOQN const mqtt = require('mqtt'); const client

    = mqtt.connect('mqtt://test.mosquitto.org'); client.on('connect', () => { client.publish('n0bisuke', 'Hello cnpm'); });