質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
npm

npmは、Node Packaged Modulesの略。Node.jsのライブラリ・パッケージを管理できるツールです。様々なモジュールを簡単にインストールでき、自分でモジュールを作成し公開する際にも使用できます。

Node.js

Node.jsとはGoogleのV8 JavaScriptエンジンを使用しているサーバーサイドのイベント駆動型プログラムです。

Q&A

1回答

563閲覧

npm startに失敗する

Zapdos_1060

総合スコア19

npm

npmは、Node Packaged Modulesの略。Node.jsのライブラリ・パッケージを管理できるツールです。様々なモジュールを簡単にインストールでき、自分でモジュールを作成し公開する際にも使用できます。

Node.js

Node.jsとはGoogleのV8 JavaScriptエンジンを使用しているサーバーサイドのイベント駆動型プログラムです。

0グッド

0クリップ

投稿2017/10/21 03:39

編集2017/10/22 04:40

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

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

karamarimo

2017/10/21 15:53

とりあえずnpmをアップデートされてはどうでしょうか。最新verは5.5.1です。
Zapdos_1060

2017/10/22 04:39

アップデートしましたが、解決しません・・・
karamarimo

2017/10/22 05:46

app.js を含むソースコードやpackage.jsonを提示していただくと回答が得られるかもしれません。
guest

回答1

0

こんにちは、自分もWindowsでamazonのDashボタンを動かそうとしていたので、
気になりました。

npm install --global windows-build-tools

は、ビルドツールのインストールコマンドのようです。

bash

1Error: Cannot find module 'node-dash-button'

と、「node-dash-button」モジュールが見つからないとの
エラーが出てますから、

bash

1node app.js

を実行しているディレクトリで、

npm install node-dash-button

としてみてはどうでしょうか?

さらに、他のモジュールが見つからないエラーが出てしまったら、

bash

1npm install

とすれば、もしかすると、うまく動かせるかもしれません。

投稿2017/10/27 06:47

kjunichi

総合スコア39

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問