npm run dev Error: spawn wepy ENOENTError: spaw?
发布于 5 年前 作者 ping45 9964 次浏览 来自 问答

错误log: events.js:180

      throw er; // Unhandled ‘error’ event

      ^

Error: spawn wepy ENOENT

    at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)

    at onErrorNT (internal/child_process.js:456:16)

    at processTicksAndRejections (internal/process/task_queues.js:77:11)

Emitted ‘error’ event at:

    at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)

    at onErrorNT (internal/child_process.js:456:16)

    at processTicksAndRejections (internal/process/task_queues.js:77:11) {

  errno: ‘ENOENT’,

  code: ‘ENOENT’,

  syscall: ‘spawn wepy’,

  path: ‘wepy’,

  spawnargs: [ ‘build’, ‘–watch’ ]

}

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! [email protected] dev: `cross-env NODE_ENV=dev wepy build --watch`

npm ERR! Exit status 1

npm ERR! 

npm ERR! Failed at the [email protected] dev script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR!     /Users/qx/.npm/_logs/2021-04-25T04_10_54_194Z-debug.log

版本:1.05.2103200

node版本:v12.8.1

npm版本:6.10.2

回到顶部