Hello
On running composer.phar create-project Vardot/varbase-project:^8.4.06 varbase --no-interaction
bash message:
Varbase > env:
[echo] Found Drush: /..../varbase/bin/drush
[echo] Found Composer:
[echo] Found NPM: /usr/local/bin/npm
[echo] Found rsync: /usr/bin/rsync
Varbase > push:
> @ install-libraries /..../varbase
> npm install && bower install
npm WARN deprecated bower@1.7.9: ..psst! While Bower is maintained, we recommend Yarn and Webpack for *new* front-end projects! Yarn's advantage is security and reliability, and Webpack's is support for both CommonJS and AMD projects. Currently there's no migration path, but please help to create it: https://github.com/bower/bower/issues/2467
npm notice created a lockfile as package-lock.json. You should commit this file.
added 1 package in 7.504s
bower ENOENT No bower.json present
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ install-libraries: `npm install && bower install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ install-libraries 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! /..../.npm/_logs/2017-08-10T18_32_29_276Z-debug.log
[filesync] /usr/bin/rsync -rpKzl --exclude=".idea" --exclude="bin" --exclude="build.xml" --exclude=".git" --exclude=".gitignore" --exclude="docroot" --exclude="karma.conf.js" --exclude="*.make" --exclude="node_modules" --exclude=".travis.yml" --exclude="vendor" "." "docroot/profiles/varbase" 2>&1
[filesync]
BUILD FINISHED
Total time: 10.9104 seconds
npm debug log:
9 verbose lifecycle @~install-libraries: CWD: /.../verbase
10 silly lifecycle @~install-libraries: Args: [ '-c', 'npm install && bower install' ]
11 silly lifecycle @~install-libraries: Returned: code: 1 signal: null
12 info lifecycle @~install-libraries: Failed to exec install-libraries script
13 verbose stack Error: @ install-libraries: `npm install && bower install`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:289:16)
13 verbose stack at emitTwo (events.js:125:13)
13 verbose stack at EventEmitter.emit (events.js:213:7)
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
13 verbose stack at emitTwo (events.js:125:13)
13 verbose stack at ChildProcess.emit (events.js:213:7)
13 verbose stack at maybeClose (internal/child_process.js:927:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
14 verbose pkgid @
15 verbose cwd /.../verbase
16 verbose Darwin 16.6.0
17 verbose argv "/usr/local/Cellar/node/8.3.0/bin/node" "/usr/local/bin/npm" "run" "install-libraries"
18 verbose node v8.3.0
19 verbose npm v5.3.0
20 error code ELIFECYCLE
21 error errno 1
22 error @ install-libraries: `npm install && bower install`
22 error Exit status 1
23 error Failed at the @ install-libraries script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
These are ther version number i use
npm -v 5.3.0
node -v v8.3.0
bower -v 1.8.0
Comments
Comment #2
rajab natshahnpm install && bower install
BUILD FINISHED
Troubleshooting the issue
Comment #3
rajab natshah@smassally Please try to install varbase from the browser. This is not a PHP issue.
You will be able to install Varbase without any missing libraries, as we bring them using the composer
The Robot, and automated testing needs some extra libraries.
Phing will call build.xml file with a push command .. and it will run "npm install && bower install" to install some libraries for travis-ci Automated Functional testing.
https://travis-ci.org/Vardot/varbase/builds/262871528
You can see the run for the phing command in:
https://travis-ci.org/Vardot/varbase/jobs/262871530
Comment #4
rajab natshahComment #5
mohammed j. razem@smassally, so basically your project was successfully created for you. But "building" the project and installing it from Phing failed.
If you go to
http://localhost/varbase/docrootor whatever your local installation is, you'll be able to install Varbase from the UI.@Rajab, let's see why Phing is trying failing, or if this whole step is necessary for varbase-project.
Comment #6
rajab natshahComment #7
rajab natshahRemoved phing calls in varbase-project .. No Robots or Testing process. they will be only in varbase profile
composer create-project Vardot/varbase-project:^8.4.06 PROJECT_DIR_NAME --no-dev --no-interactionComment #8
mohammed j. razemAll seems good.
Comment #9
mohammed j. razemIssue fixed in the same tag 8.4.06.
Running
composer create-project Vardot/varbase-project:^8.4.06 PROJECT_DIR_NAME --no-dev --no-interactionwill work without requiring phing thus suppressing the errors that appeared.Comment #10
rajab natshah