Leonidas-from-XIV / node-xml2js

XML to JavaScript object converter.
MIT License
4.87k stars 601 forks source link

build error #554

Closed jiawulin001 closed 4 years ago

jiawulin001 commented 4 years ago

An error occurred while I was building xml2js:

D:\Code\node-xml2js>npm run build

> xml2js@0.4.23 build D:\Code\node-xml2js
> cake build

events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: spawn coffee ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
    at onErrorNT (internal/child_process.js:407:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
    at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
    at startup (internal/bootstrap/node.js:279:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:752:3)

Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
    at onErrorNT (internal/child_process.js:407:16)
    [... lines matching original stack trace ...]

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! xml2js@0.4.23 build: `cake build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the xml2js@0.4.23 build 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!     C:\Users\jiawulin-pc\AppData\Roaming\npm-cache\_logs\2020-02-17T08_41_50_680Z-debug.log

I tried to execute the coffee -cw -o lib src command,It worked。 image