iam 如何和新开发的模块整合在一起

iam 如何和新开发的模块整合在一起,如何修改首页

请问下是前端还是后端?麻烦补充一下描述,问题不是很清楚

前端開發,想要調开发前端项目,然后把iam模块包含进去。

你可以参考choerodon 的方式通过添加git子模块。https://github.com/choerodon/choerodon-front
通过命令将两个模块打包到一起。

$ npm run build choerodon-front-iam/iam choerodon-front-demo/demo

按照这个执行不行了。就只加iam都直接报错,为什么?
npm run build choerodon-front-iam/iam

choerodon-front@0.8.1 build \choerodon\truck\choerodon_front\choerodon_front
choerodon-front-boot build --config ./config.js “choerodon-front-iam/iam”

events.js:183
throw er; // Unhandled ‘error’ event
^

Error: spawn npm.cmd ENOENT
at _errnoException (util.js:992:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:372:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
at Function.Module.runMain (module.js:695:11)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! choerodon-front@0.8.1 build: choerodon-front-boot build --config ./config.js "choerodon-front-iam/iam"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the choerodon-front@0.8.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

node_modules目录的权限问题, chmod -R 777 node_modules