backbase / bb-lp-cli Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
On Ubuntu x64 v16.04, with node v4.4.2, bb-lp-cli fails to build widgets, looking for a ./styles/base.css file
Tested on an untouched lp-widget generated with 'bb generate'
I believe we should have same licenses in different Backbase tooling, here's one in bb-cli
https://github.com/Backbase/bb-cli/blob/master/LICENSE.md.
@craigwalkeruk, what do you think?
The model.xml needs to be validated during build. Sometime it is too late for discovering issue in model.xml during deployment.
On Ubuntu x64 v16.04, with node >4.4.2, bb-lp-cli fails to build widgets.
Tested on an untouched lp-widget generated with 'bb generate'
I have tried many times to install "bb-lp-cli" but it is not getting installed successfully. However "bb-cli" got installed successfully.
I tried (1) by running cmd as administrator , (2) tried by disabling antivirus, (3) tried using "--force" flag, (4) tried by "npm cache clean" but it did not work all the times.
I am getting following error all the times.
C:\backbase\CLI\bb-lp-cli-master>npm install -g bb-lp-cli
npm WARN deprecated [email protected]: Please use gulp-clean-css
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls gracef
ul-fs' to find it in the tree.
npm WARN deprecated [email protected]: use uuid module instead
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please upgrade to v2.0 or higher!
npm WARN deprecated [email protected]: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench fo
r. Thanks for all the usage over the years.
npm WARN deprecated [email protected]: potential XSS vulnerability in autoescape mode, and with escape filter was fixed in v2.4.3
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls gracef
ul-fs' to find it in the tree.
npm WARN deprecated [email protected]: potential XSS vulnerability in autoescape mode, and with escape filter was fixed in v2.4.3
C:\Users\IBM_ADMIN\AppData\Roaming\npm
`-- (empty)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\bb-lp-cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~0.3.1 (node_modules\bb-lp-cli\node_modules\nunjucks\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "bb-lp-cli"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! path C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\bb-lp-cli
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\bb-lp-cli' -> 'C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\.bb-l
p-cli.DELETE'
npm ERR! at moveAway (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:38:5)
npm ERR! at destStatted (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:27:7)
npm ERR! at FSReqWrap.oncomplete (fs.js:123:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\bb-lp-cli' -> 'C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\.bb-l
p-cli.DELETE'
npm ERR! at Error (native)
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\bb-lp-cli' -> 'C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\.bb-
lp-cli.DELETE'
npm ERR! at moveAway (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:38:5)
npm ERR! at destStatted (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:27:7)
npm ERR! at FSReqWrap.oncomplete (fs.js:123:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\bb-lp-cli' -> 'C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules\.bb-l
p-cli.DELETE'
npm ERR! at Error (native)
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! C:\backbase\CLI\bb-lp-cli-master\npm-debug.log
npm ERR! code 1
It would be nice to get a list of all templates available for bblp generate
straight from the command line.
Something like an additional option would help with this to list out all templates that can be used for this command:
bblp generate -ls
-ls
can then be used by other commands to also list out whatever is available to that specific command.
31 10 2016 15:54:15.673:ERROR [karma]: { [Error: invalid argument]
code: 'EINVAL',
errno: 18,
message: 'invalid argument',
path: '../sandbox/dev/onboarding-collection/widget/siema/test/unit/index.js' }
Error: invalid argument
at pathToArray (c:\Users\43997483\AppData\Roaming\npm\node_modules\bb-lp-cli\node_modules\karma-webpack\node_modules\webpack-dev-middleware\node_modules\memory-fs\lib\MemoryFileSystem.js:51:19)
at MemoryFileSystem.readFileSync (c:\Users\43997483\AppData\Roaming\npm\node_modules\bb-lp-cli\node_modules\karma-webpack\node_modules\webpack-dev-middleware\node_modules\memory-fs\lib\MemoryFileSystem.js:114:16)
at MemoryFileSystem.readFile (c:\Users\43997483\AppData\Roaming\npm\node_modules\bb-lp-cli\node_modules\karma-webpack\node_modules\webpack-dev-middleware\node_modules\memory-fs\lib\MemoryFileSystem.js:309:27)
at doRead (c:\Users\43997483\AppData\Roaming\npm\node_modules\bb-lp-cli\node_modules\karma-webpack\index.js:159:35)
at Plugin.readFile (c:\Users\43997483\AppData\Roaming\npm\node_modules\bb-lp-cli\node_modules\karma-webpack\index.js:166:3)
at doNTCallback0 (node.js:407:9)
at process._tickCallback (node.js:336:13)
? Something went wrong while running the tests: exit code 1
I have found how to fix bblp test runner, you need to edit file
C:\Users\43997483\AppData\Roaming\npm\node_modules\bb-lp-cli\node_modules\karma-webpack\index.js:157
Change code
var kwFile = path.join('', file).replace(/\\/g, "/");
to
var kwFile = path.join('/', file).replace(/\\/g, "/");
In a locked down environment the installation of phantomjs fails:
`> [email protected] install /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/ADOP_NodeJS/lib/node_modules/bb-lp-cli/node_modules/phantomjs
node install.js
PhantomJS not found on PATH
Download already available at /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2
Verified checksum of previously downloaded file
Extracting tar contents (via spawned process)
Error extracting archive
Phantom installation failed { [Error: Command failed: tar jxf /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2
tar (child): bzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
]
killed: false,
code: 2,
signal: null,
cmd: 'tar jxf /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2' } Error: Command failed: tar jxf /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2
tar (child): bzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
at ChildProcess.exithandler (child_process.js:202:12)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:850:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:90:13)
at Socket.emit (events.js:182:7)
at Pipe._onclose (net.js:484:12)`
There is no control to the server or possibility to install the required libraries.
Please remove phantomjs as a required dependency for the bb-lp-cli
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.