首先下载源代码
https://github.com/bonitasoft/bonita-portal-js
以下内容为Github 的安装教程包含我安装过程中遇到的问题。并加以修正
Part of bonita portal written using AngularJs
开始之前先将yarn 设置成淘宝镜像
yarn config set registry http://registry.npm.taobao.org/
在源代码根目录中执行 yarn install
然后是需要漫长的等待。。。
[4/5] Linking dependencies...
[##############################################------------------------------------------------------------] 8100/18653
卡在这里了。。。
yarn install yarn install v1.6.0 [1/5] Validating package.json... [2/5] Resolving packages... success Already up-to-date. $ bower install bower[66044]: src\node_contextify.cc:631: Assertion `args[1]->IsString()‘ failed. 1: node::DecodeWrite 2: node::DecodeWrite 3: uv_loop_fork 4: v8::internal::interpreter::BytecodeDecoder::Decode 5: v8::internal::RegExpImpl::Exec 6: v8::internal::RegExpImpl::Exec 7: v8::internal::RegExpImpl::Exec 8: 000002ABF2604281 error Command failed with exit code 134. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. PS E:\JzSoft\BPM\OfficalSource\bonita-portal-js> yarn start yarn run v1.6.0 $ npm-run-all --parallel dev:* > portaljs@0.0.0 dev:serve E:\JzSoft\BPM\OfficalSource\bonita-portal-js > grunt serve > portaljs@0.0.0 dev:less E:\JzSoft\BPM\OfficalSource\bonita-portal-js > watch --wait=1 ‘npm-run-all --parallel build:*‘ main/styles > Watching main/styles ‘‘npm-run-all‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。 grunt[66456]: src\node_contextify.cc:631: Assertion `args[1]->IsString()‘ failed. 1: node::DecodeWrite 2: node::DecodeWrite 3: uv_loop_fork 4: v8::internal::interpreter::BytecodeDecoder::Decode 5: v8::internal::RegExpImpl::Exec 6: v8::internal::RegExpImpl::Exec 7: v8::internal::RegExpImpl::Exec 8: 00000346D6C84281 npm ERR! code ELIFECYCLE npm ERR! errno 134 npm ERR! portaljs@0.0.0 dev:serve: `grunt serve` npm ERR! Exit status 134 npm ERR! npm ERR! Failed at the portaljs@0.0.0 dev:serve 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\hyzx8\AppData\Roaming\npm-cache\_logs\2018-05-05T16_02_45_074Z-debug.log ERROR: dev:serve: None-Zero Exit(134); error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Before running project in development mode, you need to launch a Bonita backend available on URL http://localhost:8080/ Then launch:
yarn start
Project should be running at URL http://localhost:9000/bonita/portaljs/
yarn run test
yarn run test:watch
yarn run e2e
yarn run e2e:headless
yarn run build
Localization keys can be extracted from source files to an .pot output file (./target/portal-js.pot). To do so, run the following command
yarn run pot
Project can also be built using maven
mvn clean package [-Pe2e]
This will build the project, package it in a zip file and, run end to end test if e2e profile is activated
首先下载源代码
https://github.com/bonitasoft/bonita-portal-js
Part of bonita portal written using AngularJs
注意,按照github 教程下一步安装过程中报错
此时需要安装 :phantomjs http://phantomjs.org/download.html 并将 bin 目录添加到环境变量
Please run yarn install
Before launching any of following tasks
这将需要漫长的等待。。。
Before running project in development mode, you need to launch a Bonita backend available on URL http://localhost:8080/ Then launch:
yarn start
Project should be running at URL http://localhost:9000/bonita/portaljs/
yarn run test
yarn run test:watch
yarn run e2e
yarn run e2e:headless
yarn run build
Localization keys can be extracted from source files to an .pot output file (./target/portal-js.pot). To do so, run the following command
yarn run pot
Project can also be built using maven
mvn clean package [-Pe2e]
This will build the project, package it in a zip file and, run end to end test if e2e profile is activated
原文:https://www.cnblogs.com/Qbit/p/8996850.html