Nodemon: استثناء في nodemon kill node - تشغيل nodemon على Windows 10

تم إنشاؤها على ٢٣ أغسطس ٢٠١٥  ·  5تعليقات  ·  مصدر: remy/nodemon

أحاول تنفيذ nodemon على نظام التشغيل Windows 10

$ > 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 }
--------------


التعليق الأكثر فائدة

كان يفتقد C: WindowsSystem32 في المسار.
تم حل المشكلة.

ال 5 كومينتر

كان يفتقد C: WindowsSystem32 في المسار.
تم حل المشكلة.

giacomorebonato ما زلت أفهم كيفية حل هذه المشكلة.

giacomorebonato لقد حللت هذه المشكلة. مسار التحديث ثم قم بإعادة تشغيل جهاز الكمبيوتر الخاص بي.

يمكن لأي شخص أن يخبرني كيفية تحديث المسار؟

@ محمد قانيت

نظام التشغيل Windows 10:
لوحة التحكم> كافة عناصر لوحة التحكم> النظام> إعدادات النظام المتقدمة [على الشريط الأيسر]
علامة تبويب متقدمة> زر متغيرات البيئة
حدد متغير PATH ، انقر فوق تحرير ...
انقر فوق الزر New ، وسيسمح لك بإضافة موقع جديد إلى PATH. تأكد من عدم إزالة الأسطر الموجودة ، أو ستقوم بإيقاف البرامج الأخرى التي تحتاج إليها!

هل كانت هذه الصفحة مفيدة؟
0 / 5 - 0 التقييمات