2017-02-15 20 views
0

をJSONファイルを見つけることができない、親切にログファイルと一緒に詳細の下にチェックNPM startコマンドは、NPMのv3.10.8で

simplymacs-MacBook-Air-2:hackoregon_component_library 
MelissaKeith$ npm "start" 
npm ERR! Darwin 15.6.0 
npm ERR! argv "/usr/local/Cellar/node/6.8.1/bin/node" "/usr/local/bin/npm" "start" 
npm ERR! node v6.8.1 
npm ERR! npm v3.10.8 
npm ERR! path /Users/MelissaKeith/package.json 
npm ERR! code ENOENT 
npm ERR! errno -2 
npm ERR! syscall open 

npm ERR! enoent ENOENT: no such file or directory, open '/Users/MelissaKeith/package.json' 
npm ERR! enoent ENOENT: no such file or directory, open '/Users/MelissaKeith/package.json' 
npm ERR! enoent This is most likely not a problem with npm itself 
npm ERR! enoent and is related to npm not being able to find a file. 
npm ERR! enoent 
npm ERR! Please include the following file with any support request: 
npm ERR!  /Users/MelissaKeith/hackoregon_component_library/npm-debug.log 
、JSONファイルを見つけることができないようです

NPM-debug.logに

0 info it worked if it ends with ok 
1 verbose cli [ '/usr/local/Cellar/node/6.8.1/bin/node', 
1 verbose cli '/usr/local/bin/npm', 
1 verbose cli 'start' ] 
2 info using [email protected] 
3 info using [email protected] 
4 verbose config Skipping project config: /Users/MelissaKeith/.npmrc. (matches userconfig) 
5 verbose stack Error: ENOENT: no such file or directory, open '/Users/MelissaKeith/package.json' 
5 verbose stack  at Error (native) 
6 verbose cwd /Users/MelissaKeith/hackoregon_component_library 
7 error Darwin 15.6.0 
8 error argv "/usr/local/Cellar/node/6.8.1/bin/node" "/usr/local/bin/npm" "start" 
9 error node v6.8.1 
10 error npm v3.10.8 
11 error path /Users/MelissaKeith/package.json 
12 error code ENOENT 
13 error errno -2 
14 error syscall open 
15 error enoent ENOENT: no such file or directory, open '/Users/MelissaKeith/package.json' 
16 error enoent ENOENT: no such file or directory, open '/Users/MelissaKeith/package.json' 
16 error enoent This is most likely not a problem with npm itself 
16 error enoent and is related to npm not being able to find a file. 
17 verbose exit [ -2, true ] 
+1

'npm start'を実行しているディレクトリに' package.json'ファイルがありますか? – carebdayrvis

+0

あなたの 'package.json'はどこですか? – jiyinyiyong

+0

ディレクトリのメインファイルにpackage.jsonファイルとそのファイルがあります – Melissa

答えて

0

私は非常に同様の問題がありました。 node_modulesフォルダ全体を削除して再インストールしました。この問題は、古いモジュール(package.jsonで書かれています)をインストールしているときに発生しますが、バージョンによって更新されないためgitで利用できません:

この問題を解決するために

rm -rf node_modules 
npm install 
+0

モジュールがgithubで期限切れであったかどうかを確認するにはどうすればよいですか?そして、この状況ではnode_moduleはどういう意味ですか? – Melissa

+0

simplymacs-のMacBook-エア-2:hackoregon_component_library MelissaKeith $ RM -rf node_modules simplymacs-のMacBook-エア-2:hackoregon_component_library MelissaKeith $ NPM NPMをインストールENOENT ENOENT WARN:「オープン、そのようなファイルやディレクトリはありませんが/ユーザー/ MelissaKeith /パッケージ.json ' npm WARN MelissaKeithいいえ説明 npm WARN MelissaKeithレポジトリのフィールドはありません。 npm WARN MelissaKeithいいえREADMEデータ npm WARN MelissaKeithライセンスフィールドはありません。 – Melissa

+0

モジュール 'npm-check'があります。これは古い、間違っている、未使用の依存関係をチェックします。 https://github.com/dylang/npm-check –

関連する問題