Amazon Dash Buttonを使った開発を行おうとしています。その際、dasherを使おうとしているのですが、npm run でdasherがうまく起動できずにテストすらできない状況になっています。どうかお知恵をお貸しください。
なお、npm installの際には下記のコマンドを実行しています。installの際にもエラーが発生したため、下記のコマンドによって解決しました。
bash
1npm install --global windows-build-tools
環境
・Windows10
・node:6.11.3
・npm:5.5.1
以下、npm runを実行した際のエラーメッセージです。
bash
1> node app.js 2 3module.js:471 4 throw err; 5 ^ 6 7Error: Cannot find module 'node-dash-button' 8 at Function.Module._resolveFilename (module.js:469:15) 9 at Function.Module._load (module.js:417:25) 10 at Module.require (module.js:497:17) 11 at require (internal/module.js:20:19) 12 at Object.<anonymous> (C:\Users****\Documents\LoacalRepo\dasher\lib\dasher.js:2:18) 13 at Module._compile (module.js:570:32) 14 at Object.Module._extensions..js (module.js:579:10) 15 at Module.load (module.js:487:32) 16 at tryModuleLoad (module.js:446:12) 17 at Function.Module._load (module.js:438:3) 18 19npm ERR! Windows_NT 10.0.10586 20npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "sta 21rt" 22npm ERR! node v6.11.3 23npm ERR! npm v3.10.10 24npm ERR! code ELIFECYCLE 25npm ERR! dasher@1.4.1 start: `node app.js` 26npm ERR! Exit status 1 27npm ERR! 28npm ERR! Failed at the dasher@1.4.1 start script 'node app.js'. 29npm ERR! Make sure you have the latest version of node.js and npm installed. 30npm ERR! If you do, this is most likely a problem with the dasher package, 31npm ERR! not with npm itself. 32npm ERR! Tell the author that this fails on your system: 33npm ERR! node app.js 34npm ERR! You can get information on how to open an issue for this project with: 35npm ERR! npm bugs dasher 36npm ERR! Or if that isn't available, you can get their info via: 37npm ERR! npm owner ls dasher 38npm ERR! There is likely additional logging output above. 39 40npm ERR! Please include the following file with any support request: 41npm ERR! C:\Users****\Documents\LoacalRepo\dasher\npm-debug.log