1
ノードモジュールを使用してGulp環境で動作するReact.jsアプリケーションの作業を開始しました。npm startがGulp jsのReactアプリケーションで動作しない
プロジェクトコマンドを実行するにはnpm startまたはgulp watchです。
npm startはgulp watchをトリガーします。したがって、npmを使用するとノード・モジュール・エラーが発生します。私はギャルップウォッチを使用する場合、以下のエラーを取得していません。
C:\Users\ryangyeswar\Documents\Interserv>npm start
'CALL "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules
\npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external com
mand,
operable program or batch file.
> [email protected] start C:\Users\ryangyeswar\Documents\Interserv
> gulp watch
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 v4.8.4
npm ERR! npm v2.15.11
npm ERR! file C:\Users\ryangyeswar\AppData\Roaming\npm
npm ERR! path C:\Users\ryangyeswar\AppData\Roaming\npm
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:\Users\ryangyeswar\AppData\Roaming\npm
npm ERR! [email protected] start: `gulp watch`
npm ERR! spawn C:\Users\ryangyeswar\AppData\Roaming\npm ENOENT
npm ERR!
npm ERR! Failed at the [email protected] start script 'gulp watch'.
npm ERR! This is most likely a problem with the react-starterify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! gulp watch
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs react-starterify
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls react-starterify
npm ERR! There is likely additional logging output above.
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 v4.8.4
npm ERR! npm v2.15.11
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `gulp watch`
npm ERR! Exit status -4058
npm ERR!
npm ERR! Failed at the [email protected] start script 'gulp watch'.
npm ERR! This is most likely a problem with the react-starterify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! gulp watch
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs react-starterify
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls react-starterify
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\ryangyeswar\Documents\Interserv\npm-debug.log
2)
同じエラーが NPMを発生したNPMのバージョンを確認しながら、-v
実際に私のプロジェクトはノードバージョン4で開発されましたが、それはその環境でのみ実行されます。4.80.4 –
環境変数パスが正しく設定されていない場合にシステムを再起動して、 ! –
同じエラーが来ました。 –