hxfdarling/a8k

Not work on win10

Closed this issue · 0 comments

nzhl commented

Following commands on win10 lead an error

k create demo 
- 基于typescript的项目
- node server

Error msg:

Trace: { Error: spawn npm ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn npm',
  path: 'npm',
  spawnargs: [ 'i' ] }
    at ChildProcess.sp.on.err (C:\Users\asshole\AppData\Local\Yarn\Data\global\node_modules\@a8k\cli-utils\spawn.js:5:15)   
    at ChildProcess.emit (events.js:198:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)