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