2017-07-05 3 views
1

私のリアクションアプリケーションの環境設定中にエラーが発生します。 私は、将来のコーディングごとに何もしていません。 それはちょうど反応の世界プログラムです。 以下のURLにノードモジュールもアップロードしました。npmを実行している間にセットアップセットアップエラーが発生しました:設定ファイルが見つかりましたが、設定されたエントリはありません。 --helpを使用してCLIオプションを表示する

私はGitHubの中で私のコードを下に入れている:https://github.com/Arpan1089/reactapp

エラー:\ Users \ユーザーSumeet \デスクトップ\ reactapp のWebPACK-devのサーバー

はCを開始[email protected]~~MD~~auxを

設定ファイルが見つかりましたが、エントリは設定されていません。 --helpを使用してCLIオプションを表示します。

npm ERR! Windows_NT 6.1.7601 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\ 
node_modules\\npm\\bin\\npm-cli.js" "start" 
npm ERR! node v6.11.0 
npm ERR! npm v3.10.10 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] start: `webpack-dev-server` 
npm ERR! Exit status 4294967295 
npm ERR! 
npm ERR! Failed at the [email protected] start script 'webpack-dev-server'. 
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 reactapp package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  webpack-dev-server 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs reactapp 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls reactapp 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\Users\Sumeet\Desktop\reactapp\npm-debug.log 
+0

npm startコマンドを使用してサーバで実行しましたか? "reactapp"、 "バージョン": "1.0.0"、 "説明": ""、 "メイン":「index.js –

答えて

0

あなたpackage.jsonscripts内部タグ

"scripts": { 
    "start": "webpack-dev-server --hot" 
}, 

でこれを追加し、WebPACKの-devのサーバーが

npm install webpack-dev-server 

を使用して、あなたのかもしれ--hotとのWebPACK-devのサーバーをインストールしますローカルホスト上の同じポート(8080)上で別のプロセスを実行していると、アプリケーションが実行されません。

+0

Aビクラムあなたは私のpackage.json> – Arpan

+0

{ "名前" を見てきました」 "スクリプト":{ は "開始": "のWebPACK-DEV-サーバ" }、 "著者": ""、 "ライセンス": "ISC"、 "依存性" は:{ が "反応します" : "^ 15.6.1"、 "react-dom": "^ 15.6.1"、 "webpack": "^ 3.0.0"、 "webpack-dev-server": "^ 2.5.0" }、 "devDependencies":{ "webpack-dev-server": "^ 2.5.0" } } それと私は別のポートで試してみました。 – Arpan

+0

webpack-dev-serverとwebpackをインストールしましたか? –

関連する問題