Windows10でnodemonを実行しようとしています
$ > node-debug server.js
> nodemon server.js
23 Aug 10:01:12 - [nodemon] v1.4.1
23 Aug 10:01:12 - [nodemon] to restart at any time, enter `rs`
23 Aug 10:01:12 - [nodemon] watching: *.*
23 Aug 10:01:12 - [nodemon] starting `node server.js`
exception in nodemon killing node
Error: spawn cmd ENOENT
at exports._errnoException (util.js:746:11)
at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
at child_process.js:1144:20
at process._tickCallback (node.js:355:11)
----------------------------------------------------------
If appropriate, please file an error with the output from:
$ node C:\Users\Admin\AppData\Roaming\npm\node_modules\nodemon\bin\nodemon.js server.js --dump
At http://github.com/remy/nodemon/issues/new
----------------------------------------------------------
そしてこれはダンプです
23 Aug 10:02:51 - [nodemon] v1.4.1
23 Aug 10:02:51 - [nodemon] to restart at any time, enter `rs`
23 Aug 10:02:51 - [nodemon] watching: *.*
--------------
node: v0.12.7
nodemon: v1.4.1
command: node C:\Users\Admin\AppData\Roaming\npm\node_modules\nodemon\bin\nodemon.js server.js --dump
cwd: C:\Users\Admin\Dev\mino_api_boilerplate\lib
OS: win32 x64
--------------
{ run: false,
system:
{ cwd: 'C:\\Users\\Admin\\Dev\\mino_api_boilerplate\\lib',
useFind: false,
useWatch: true,
useWatchFile: false },
required: false,
dirs: [ 'C:\\Users\\Admin\\Dev\\mino_api_boilerplate\\lib' ],
timeout: 1000,
options:
{ dump: true,
ignore:
[ '.git',
'node_modules',
'bower_components',
'.sass-cache',
re: /\.git|node_modules|bower_components|\.sass\-cache/ ],
watch: [ '*.*', re: /.*\..*/ ],
restartable: 'rs',
execMap: { py: 'python', rb: 'ruby' },
stdin: true,
runOnChangeOnly: false,
verbose: false,
stdout: true,
execOptions:
{ script: 'server.js',
exec: 'node',
args: [],
scriptPosition: 0,
nodeArgs: undefined,
ext: 'js',
env: {},
execArgs: [] },
monitor:
[ '*.*',
'!.git',
'!node_modules',
'!bower_components',
'!.sass-cache' ] },
load: [Function],
reset: [Function: reset],
lastStarted: 0,
loaded: [],
command:
{ raw: { executable: 'node', args: [ 'server.js' ] },
string: 'node server.js' },
offset: 0 }
--------------
PATHにC:WindowsSystem32がありませんでした。
問題が解決しました。
@giacomorebonato私はまだこの問題を解決する方法を理解しています。
@giacomorebonato私はこの問題を解決しました。 パスを更新してから、コンピューターを再起動します。
パスを更新する方法を教えてもらえますか?
@ Mohammad-Quanit
ウィンドウズ10:
コントロールパネル>すべてのコントロールパネル項目>システム>システムの詳細設定[左側のバー]
[詳細設定]タブ> [環境変数]ボタン
PATH
変数を選択し、[編集...]をクリックします。
New
ボタンをクリックすると、PATHに新しい場所を追加できます。 既存の行を削除しないように注意してください。削除しないと、それを必要とする他のプログラムが壊れてしまいます。
最も参考になるコメント
PATHにC:WindowsSystem32がありませんでした。
問題が解決しました。