0

我正在尝试将 apims-apps 构建到最新版本,但无法执行第 3 步。 ii 按照 GitHub ( https://github.com/wso2/apim-apps/ ) 上的说明进行操作。请给我一个解决这个问题的方法:

C:\MyDATA\BaseCode\BE\apim-apps\portals>npm run build:prod

> @wso2apim/portals@1.0.0 build:prod C:\MyDATA\BaseCode\BE\apim-apps\portals
> lerna run build:prod --stream

lerna notice cli v3.22.1
lerna info Executing command in 3 packages: "npm run build:prod"
@wso2apim/admin: > @wso2apim/admin@3.0.1 build:prod C:\MyDATA\BaseCode\BE\apim-apps\portals\admin
@wso2apim/admin: > rm -R site/public/dist/; npm rum i18n && NODE_ENV=production NODE_OPTIONS=--max_old_space_size=4096 webpack --mode production --stats=errors-only
@wso2apim/admin: 'rm' is not recognized as an internal or external command,
@wso2apim/admin: operable program or batch file.
@wso2apim/admin: npm ERR! code ELIFECYCLE
@wso2apim/admin: npm ERR! errno 1
@wso2apim/admin: npm ERR! @wso2apim/admin@3.0.1 build:prod: `rm -R site/public/dist/; npm rum i18n && NODE_ENV=production NODE_OPTIONS=--max_old_space_size=4096 webpack --mode production --stats=errors-only`
@wso2apim/admin: npm ERR! Exit status 1
@wso2apim/admin: npm ERR!
@wso2apim/admin: npm ERR! Failed at the @wso2apim/admin@3.0.1 build:prod script.
@wso2apim/admin: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
@wso2apim/admin: npm ERR! A complete log of this run can be found in:
@wso2apim/admin: npm ERR!     C:\Users\tnguyen652\AppData\Roaming\npm-cache\_logs\2021-11-24T04_42_16_060Z-debug.log
lerna ERR! npm run build:prod exited 1 in '@wso2apim/admin'
lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @wso2apim/portals@1.0.0 build:prod: `lerna run build:prod --stream`
npm ERR! Exit status 1
npm ERR!`enter code here`
npm ERR! Failed at the @wso2apim/portals@1.0.0 build:prod 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\tnguyen652\AppData\Roaming\npm-cache\_logs\2021-11-24T04_42_16_128Z-debug.log
4

0 回答 0