Automatic packaging webpack new configurations npm run dev error occurs
Run the following error appears npm run dev
Listening at http://localhost:8080
(node:2328) UnhandledPromiseRejectionWarning: Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:217:19)
at onErrorNT (internal/child_process.js:394:16)
at process._tickCallback (internal/process/next_tick.js:174:19)
........
........
........
Solution:
1. the port may be occupied, modify the port.
2. Check: The system variable "path" if there is:% SystemRoot% \ system32 or c: \ windows \ system32
If not, enter cmd input config is wrong and needs to be C: \ Windows \ System32 or% SystemRoot% \ system32 added to the Path environment variable, and then run npm run dev no problem
plus go after not enough, then restart the computer under.
% systemroot% environment variable refers to the Windows system directory is located. Usually c: \ windows, mainly to see when you install Windows folder of your choice.
% systemroot% system32 typically c: \ Windows \ system32
system32 is the Windows operating system folder, is the central operating system.
system32 folder on the C drive Windows computer file, which contains a large number of files for Windows.
Here is mainly used to store DLL files, control panel applet (.CPL), device drivers (.drv), help files (.hlp and .cnt), MS-DOS tool (.com),
language support files (.nls) , screen saver (.scr), setup information file (.inf) for support and other files, configuration or operation.