Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First time install, fails #572

Closed
saas786 opened this issue Feb 10, 2015 · 12 comments
Closed

First time install, fails #572

saas786 opened this issue Feb 10, 2015 · 12 comments

Comments

@saas786
Copy link

saas786 commented Feb 10, 2015

Hi,

I have installed vagrant, and cloned this repo "https://github.com/Varying-Vagrant-Vagrants/VVV/" on my local machine, and "vagrant up" it did install virtualbox image, and necessary modules php, ngnix and so on.

In the end when it was doing things for default: Initializing grunt in WordPress develop

it fails with this error.

==> default: Initializing grunt in WordPress develop... This may take a few mome
nts.
==> default: Loading "browserify.js" tasks...
==> default: ERROR
==> default: >> Error: Cannot find module 'crypto-browserify'
==> default: Loading "imagemin.js" tasks...
==> default: ERROR
==> default: >> Error: Cannot find module 'balanced-match'
==> default: Warning: Task "browserify:media" not found. Use --force to continue
.
==> default: Aborted due to warnings.
==> default: PHPMyAdmin already installed.
==> default: Cleaning the virtual machine's /etc/hosts file...
==> default: Adding domains to the virtual machine's /etc/hosts file...
==> default:  * Added vvv.dev from /srv/www/vvv-hosts
==> default:  * Added local.wordpress.dev from /srv/www/vvv-hosts
==> default:  * Added local.wordpress-trunk.dev from /srv/www/vvv-hosts
==> default:  * Added src.wordpress-develop.dev from /srv/www/vvv-hosts
==> default:  * Added build.wordpress-develop.dev from /srv/www/vvv-hosts
==> default: -----------------------------
==> default: Provisioning complete in 298 seconds
==> default: External network connection established, packages up to date.
==> default: For further setup instructions, visit http://vvv.dev
==> default: Running provisioner: shell...
    default: Running: inline script
==> default: stdin: is not a tty
==> default: mysql stop/waiting
==> default: mysql start/running, process 22903
==> default: Running provisioner: shell...
    default: Running: inline script
==> default: stdin: is not a tty
==> default:  * Restarting nginx nginx
==> default:    ...done.

G:\virtual box\vagrant-sites\wordpress-vvv>

What should I do.?

I am on windows 7, 64bit, VirtualBox 4.3.20, Vagrant 1.7.2

Thanks.

@cfoellmann
Copy link
Member

sounds like an issue with npm. It sometimes has hick-ups.
Maybe try again? Remove www/wordpress-develop and run vagrant provision

@saas786
Copy link
Author

saas786 commented Feb 10, 2015

Thanks @cfoellmann

Tried it, but didn't worked :(.

Also I can't access http://build.wordpress-develop.dev/

I took a peak into the code, and found that,

provisions/provisions.sh

line 582 - 586 has the issue

which is

    if [[ ! -d /srv/www/wordpress-develop/build ]]; then
        echo "Initializing grunt in WordPress develop... This may take a few moments."
        cd /srv/www/wordpress-develop/
        grunt
    fi

if I comment this I see no other errors.

@cfoellmann
Copy link
Member

Your error is showing because the grunt build process fails.
This means build.wordpress does not get build and thereby is not accessible.

I will try to test a build myself as soon as I got time

@cfoellmann
Copy link
Member

the grunt process is not running for either

@saas786
Copy link
Author

saas786 commented Feb 19, 2015

If I do use a stable release everything works fine. Only master / active branch has this issue.

@fa7ad
Copy link

fa7ad commented Feb 20, 2015

I think grunt is responsible for my issue as well #577

@jeremyfelt
Copy link
Member

I just went through a vagrant provision and then a full vagrant up from scratch and it appears that things are back in order. I'm wondering if it could have been related to a change in core's Gruntfile? https://core.trac.wordpress.org/browser/trunk/Gruntfile.js?rev=31373

I'll leave this open to keep an eye on it, but I think running vagrant provision again at this point should take care of it. If not, then remove the wordpress-develop directory and run vagrant provision again.

@fa7ad
Copy link

fa7ad commented Feb 23, 2015

@jeremyfelt yes, I removed the whole thing and cloned the repo again. ran vagrant up again and this time there was no such message. So, consider my issue closed

@cfoellmann
Copy link
Member

@jeremyfelt CLOSE

@golfhotel
Copy link

From several days I have a similar problem. Npm does not install correctly dependencies. I run three new installations of VVV but the result no changes. Wordpress-develop is not completely installed. Below is a screenshot to better understand.

vvv-grunt

Also verify that NPM works properly only in the /home/vagrant folder while in the /srv/www or /vagrant folder reports an error. Below the folder structure as reference; folders with asterisks are those mentioned.

┌─ bin
├─ boot
├─ build
├─ dev
├─ etc
├─ home
│     ├─ ubuntu
│     └─ vagrant (*)
│         └─ bin
├─ inittrd.img
├─ lib
├─ lib64
├─ lost+found
├─ media
├─ mnt
├─ opt
├─ proc
├─ root
├─ run
├─ sbin
├─ srv
│     ├─ config
│     ├─ database
│     ├─ log
│     └─ www (*)
├─ sys
├─ tmp
├─ usr
├─ vagrant (*)
│     ├─ CHANGELOG.md
│     ├─ config
│     ├─ CONTRIBUTING.md
│     ├─ database
│     ├─ LICENSE
│     ├─ log
│     ├─ provision
│     ├─ README.md
│     ├─ Vagrantfile
│     ├─ wp-cli.yml
│     └─ www
├─ var
└─ vmlinuz

Below the error when I try to install Grunt locally (npm install grunt --save-dev) in a theme.

npm-grunt-error

@jeremyfelt
Copy link
Member

I believe issues related to this should be resolved as of #969.

@lock
Copy link

lock bot commented Feb 22, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants