Comments (9)
It is minimally supported and I'm happy to merge patches for any issues you find. It does work for me - what are the errors you are coming up with?
from civicrm-buildkit-vagrant.
@gobnat Can you try again? Run vagrant destroy
and the vagrant up --provision
I've stopped it installing the dist version of npm and left it to the nodejs script to install it. That seems to give me a clean build...
from civicrm-buildkit-vagrant.
Running:
Vagrant 1.9.1
Ubuntu 16.04.3 LTS
Most errors relate to npm and node. Similar to #23
eg:
npm WARN npm npm does not support Node.js v5.12.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'node-gyp/bin/node-gyp'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/vagrant/.npm/_logs/2018-02-19T05_21_35_201Z-debug.log
I did tinker with manually fixing the install - which appears to have some conflicts - but buildkit is broken once the VM is up and running and not producing dev environments as in #23 .
issue #18 is also still occurring.
Some other warnings regarding depreciated commands are appearing but I don't think that is breaking anything as yet.
from civicrm-buildkit-vagrant.
@gobnat Happy to work with you to get it working... I've just merged a couple of changes in that should fix #18 and upgrade node to v8. Can you try provisioning again and see how you get on.
from civicrm-buildkit-vagrant.
Thanks for your efforts @mattwire !
so, fresh clone and vagrant up.
The solution added for #18 is not working. i still had to manually create the directory after the vagrant up was done and then re-provision to get it working.
Node and npm are working however the error has reduced to:
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'node-gyp/bin/node-gyp'
Attempting to manuall install this module, say with npm install -g node-gyp
throws the same error and fails.
I have tried re-installing npm and nodejs manually but the problem persists. If I understand civibuild correctly it uses npm so the above error would explain why the buildkit on the VM is not functional.
from civicrm-buildkit-vagrant.
I notice you're on 16.04 - vagrant should pull in 14.04 by default I think, at least that's what I'm on.
At what point are you seeing the npm error - when I do a vagrant up --provision I don't think I see that.
from civicrm-buildkit-vagrant.
I notice you're on 16.04 - vagrant should pull in 14.04 by default I think, at least that's what I'm on.
At what point are you seeing the npm error - when I do a vagrant up --provision I don't think I see that.
The VM is definitely 14.04 Trusty.
I see the error whenever npm is called. Including during the provisioning.
Looking through the errors I do see a warning that nodejs-dev
is being removed and it is required by node-gyp
. Attempting to manually install it through apt-get gives the following error:
The following packages have unmet dependencies:
nodejs-dev : Depends: nodejs (= 0.10.25~dfsg2-2ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Not sure if that actually has anything to do with it but it was the only reference to that module in the error log.
from civicrm-buildkit-vagrant.
I have it "sort of working"
I had to:
- purge nodejs and npm
- run the provision.sh script with sudo from within the vm
vagrant ssh
- Update all the repositories
- manually re-install nodejs (I may have had to purge again...) with
apt-get
After that, the civibuild is building the template sites included with the project.
from civicrm-buildkit-vagrant.
@mattwire I can confirm a fresh clone and vagrant up works perfectly now thank you so much for your time and help
from civicrm-buildkit-vagrant.
Related Issues (20)
- phpunit4 PHP Fatal error: Cannot redeclare
- Problem to try $drush cr or any drush command HOT 3
- .dev sites on google chrome HOT 2
- Cannot connect to new install - .dev domain issue HOT 2
- Configuration Check failed
- PHP 7 HOT 4
- xDebug
- download.sh script missing error
- can't even find civi.dev with IE HOT 2
- use .test gTLD rather than .dev
- dnsmasq fails configuration on provision
- Permissions issue on building backdrop sites
- Issue Installing Civi with Vagrant
- Internal DNS resolution flaky, cause of phpmyadmin not installing
- Install error: Cannot access directory '/home/vagrant/.amp/log/'
- Install error: composer not found, segfault on pecl install xdebug
- Install error: /tmp/vagrant-shell: line 534: /srv/www/phpcs/scripts/phpcs: No such file or directory
- Vagrant triggers plugin warning
- A customization command failed: setting amount of memory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from civicrm-buildkit-vagrant.