Camunda-worker-node得到我错误:找不到模块“xtend”



我是camunda的初学者,我想用它来控制nodejs中发生的事情。

我克隆了 https://github.com/camunda/camunda-bpm-examples.git,安装了JS代码...

安装了 npm,但是当我运行时,我得到:"找不到模块'xtend'",但我可以看到它在节点模块目录中。

我做错了什么?

Error: Cannot find module 'xtend'
at Function.Module._resolveFilename (module.js:543:15)
at Function.Module._load (module.js:470:25)
at Module.require (module.js:593:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/mnt/c/Users/Tristan/Documents/Codes/Javascript/repos/camunda-worker-node/lib/workers.js:1:76)
at Module._compile (module.js:649:30)
at Object.Module._extensions..js (module.js:660:10)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:501:12)
at Function.Module._load (module.js:493:3)

你没有做错任何事。这是camunda开发人员的错,他们忘记将xtend添加到他们的package.json中。您提出拉取请求并添加它的绝佳机会!

作为解决方法,您可以执行npm i xtend -S

最新更新