Closed dennis7742 closed 10 years ago
So I installed grunt-cli globally on my machine just in case but I still get the error. I can see the Gruntfile.js and the package.json file right there in the root of the wordpress-develop project where they belong. But still the error. I'm stumped. Any ideas? os: Windows 8.1 ram: 12 G Thanks for any help... Dennis
I'm getting the same thing on both Windows 8.1 and a windows 7 machine.
Paul
I'm guessing this is due to the npm SSL issue. We probably need to verify how npm/node/grunt is installed inside the VM. http://blog.npmjs.org/post/78165272245/more-help-with-self-signed-cert-in-chain-and-npm
@dennis7742 The messaging in that error is "local" to the virtual machine, not to your computer. There is no need to install grunt locally. We should be able to get a fix for this in shortly.
Thanks for the report!
Ok, so this actually works on a fresh build of VVV. Likely because the new installation of npm comes without the self signed certs.
A couple things that could fix this.
vagrant destroy
followed by vagrant up
. This will retain all files and databases but destroy all server software and config. Having the machine go through provisioning again should cause the newest npm to install.vagrant ssh
sudo apt-get purge nodejs
(purge is required to remove config files)exit
vagrant provision
Jeremy, Thanks a lot for the reply. I'll let you know how I come out. Sorry I missed you in Chicago last year. I've really been excited about using Vagrant & Puppet with WordPress dev since Tuts+ dealt with them a few months back. I also got a taste by installing them for Mathew Russel's Mining the Social Web using IPy Notebooks hosted by Vagrant.
Dennis
Jeremy,
Sorry, but I went through both procedures and neither or both were able to yield a different result. I still get the same number build (or revision 27365) right before the error:
At revision 27365. Initializing grunt in WordPress develop... This may take a few moments. grunt-cli: The grunt command line interface. (v0.1.13)
Fatal error: Unable to find local grunt.
If you're seeing this message, either a Gruntfile wasn't found or grunt hasn't been installed locally to your project. For more information about installing and configuring grunt, please see the Getting Started guide:
I got this exact same issue when npm was down about a month ago.
same here, windows 8.1
@dennis7742 Is it possible that the WordPress core Gruntfile.js
is missing from www/wordpress-develop
?
@n1smo Are you getting this error with the most recent version of VVV?
had the error last wednesday, tried it several times on a new installation.
I gave it another try yesterday and for some reason the problem is fixed...
Just dropping by to say I see the same error.
Can confirm issue. Purged nodejs. Gruntfile is in the folder, grunt & grunt-cli v0.1.13
versions at latest stable. Windows 7.
I'm going to see if I can test this a bit locally to reproduce. Has anyone had success with running vagrant provision
multiple times until it works? I'm wondering if the NPM server is not doing well at responding or if there's something we can do to improve the connection on our end.
I wonder which version of Grunt runs: My local global install or the VM install? Both seem to be on the latest version, so there's no chance to differentiate them.
Hi, I was asked by @franz-josef-kaiser to look into this. Without a real stacktrace there is no real debugging. I am puzzled why you would use a shell provisioner for such a large project. There is chef/puppet which let you organize your provisioning much nicer and also gives you stacktraces and debug output and logfiles about what happened, which makes it easier to pin down problems like this.
As a first step, maybe write all the stdout and stderr stuff into files so one can see what's the real problem is?
@Sgoettschkes thanks for taking a look! It is difficult to track things down in VVV at times. Re proper provisioning, my thoughts in https://github.com/Varying-Vagrant-Vagrants/VVV/issues/258#issuecomment-32822440 explain that a bit.
I think this falls a bit in line with my reasoning for avoiding a proper provisioner. While it's a fantastic technical answer for this type of thing for individual projects, the community benefits from having only the hurdles of Vagrant + shell to learn. At the same time, I use a provisioner in my day to day work because it's amazing.
@franz-josef-kaiser Your local Grunt should never run due to VVV. The "local" that provisioning is referring to here is inside the VM. Likely it had trouble installing at some point during provisioning. I would think that a repeat vagrant provision
would help here, but it's tough to catch the errors.
Disregard my recent post. It was a permissions issue. Once I ran git bash as an administrator, I got much better results and although it still didn't find the grunt file, it fixed it:
At revision 28220. Initializing grunt in WordPress develop... This may take a few moments.
Local Npm module "grunt-contrib-qunit" not found. Is it installed?
Running "clean:all" (clean) task
Running "copy:files" (copy) task Created 123 directories, copied 1080 files
Running "copy:wp-admin-rtl" (copy) task Copied 1 files
Running "copy:version" (copy) task Copied 1 files
Running "cssmin:core" (cssmin) task File build/wp-admin/css/color-picker.min.css created. File build/wp-admin/css/customize-controls.min.css created. File build/wp-admin/css/customize-widgets.min.css created. File build/wp-admin/css/deprecated-media.min.css created. File build/wp-admin/css/ie.min.css created. File build/wp-admin/css/install.min.css created. File build/wp-admin/css/login.min.css created. File build/wp-admin/css/wp-admin.min.css created. File build/wp-includes/css/admin-bar.min.css created. File build/wp-includes/css/buttons.min.css created. File build/wp-includes/css/dashicons.min.css created. File build/wp-includes/css/editor.min.css created. File build/wp-includes/css/jquery-ui-dialog.min.css created. File build/wp-includes/css/media-views.min.css created. File build/wp-includes/css/wp-auth-check.min.css created. File build/wp-includes/css/wp-pointer.min.css created.
Running "sass:colors" (sass) task File build/wp-admin/css/colors/blue/colors.css created. File build/wp-admin/css/colors/coffee/colors.css created. File build/wp-admin/css/colors/ectoplasm/colors.css created. File build/wp-admin/css/colors/light/colors.css created. File build/wp-admin/css/colors/midnight/colors.css created. File build/wp-admin/css/colors/ocean/colors.css created. File build/wp-admin/css/colors/sunrise/colors.css created.
Running "autoprefixer:colors" (autoprefixer) task File build/wp-admin/css/colors/blue/colors.css created. File build/wp-admin/css/colors/coffee/colors.css created. File build/wp-admin/css/colors/ectoplasm/colors.css created. File build/wp-admin/css/colors/light/colors.css created. File build/wp-admin/css/colors/midnight/colors.css created. File build/wp-admin/css/colors/ocean/colors.css created. File build/wp-admin/css/colors/sunrise/colors.css created.
Running "cssjanus:core" (cssjanus) task File "build/wp-admin/css/about-rtl.css" created. File "build/wp-admin/css/admin-menu-rtl.css" created. File "build/wp-admin/css/color-picker-rtl.css" created. File "build/wp-admin/css/common-rtl.css" created. File "build/wp-admin/css/customize-controls-rtl.css" created. File "build/wp-admin/css/customize-widgets-rtl.css" created. File "build/wp-admin/css/dashboard-rtl.css" created. File "build/wp-admin/css/deprecated-media-rtl.css" created. File "build/wp-admin/css/edit-rtl.css" created. File "build/wp-admin/css/farbtastic-rtl.css" created. File "build/wp-admin/css/forms-rtl.css" created. File "build/wp-admin/css/ie-rtl.css" created. File "build/wp-admin/css/install-rtl.css" created. File "build/wp-admin/css/l10n-rtl.css" created. File "build/wp-admin/css/list-tables-rtl.css" created. File "build/wp-admin/css/login-rtl.css" created. File "build/wp-admin/css/media-rtl.css" created. File "build/wp-admin/css/nav-menus-rtl.css" created. File "build/wp-admin/css/press-this-rtl.css" created. File "build/wp-admin/css/revisions-rtl.css" created. File "build/wp-admin/css/themes-rtl.css" created. File "build/wp-admin/css/widgets-rtl.css" created. Nothing to flip in src/wp-admin/css/wp-admin.css File "build/wp-includes/css/admin-bar-rtl.css" created. File "build/wp-includes/css/buttons-rtl.css" created. Nothing to flip in src/wp-includes/css/dashicons.css File "build/wp-includes/css/editor-rtl.css" created. File "build/wp-includes/css/jquery-ui-dialog-rtl.css" created. File "build/wp-includes/css/media-views-rtl.css" created. File "build/wp-includes/css/wp-auth-check-rtl.css" created. File "build/wp-includes/css/wp-pointer-rtl.css" created.
Running "cssjanus:colors" (cssjanus) task File "build/wp-admin/css/colors/blue/colors-rtl.css" created. File "build/wp-admin/css/colors/coffee/colors-rtl.css" created. File "build/wp-admin/css/colors/ectoplasm/colors-rtl.css" created. File "build/wp-admin/css/colors/light/colors-rtl.css" created. File "build/wp-admin/css/colors/midnight/colors-rtl.css" created. File "build/wp-admin/css/colors/ocean/colors-rtl.css" created. File "build/wp-admin/css/colors/sunrise/colors-rtl.css" created.
Running "cssmin:rtl" (cssmin) task File build/wp-admin/css/color-picker-rtl.min.css created. File build/wp-admin/css/customize-controls-rtl.min.css created. File build/wp-admin/css/customize-widgets-rtl.min.css created. File build/wp-admin/css/deprecated-media-rtl.min.css created. File build/wp-admin/css/ie-rtl.min.css created. File build/wp-admin/css/install-rtl.min.css created. File build/wp-admin/css/login-rtl.min.css created. File build/wp-admin/css/wp-admin-rtl.min.css created. File build/wp-includes/css/admin-bar-rtl.min.css created. File build/wp-includes/css/buttons-rtl.min.css created. File build/wp-includes/css/editor-rtl.min.css created. File build/wp-includes/css/jquery-ui-dialog-rtl.min.css created. File build/wp-includes/css/media-views-rtl.min.css created. File build/wp-includes/css/wp-auth-check-rtl.min.css created. File build/wp-includes/css/wp-pointer-rtl.min.css created.
Running "cssmin:colors" (cssmin) task File build/wp-admin/css/colors/blue/colors-rtl.min.css created. File build/wp-admin/css/colors/blue/colors.min.css created. File build/wp-admin/css/colors/coffee/colors-rtl.min.css created. File build/wp-admin/css/colors/coffee/colors.min.css created. File build/wp-admin/css/colors/ectoplasm/colors-rtl.min.css created. File build/wp-admin/css/colors/ectoplasm/colors.min.css created. File build/wp-admin/css/colors/light/colors-rtl.min.css created. File build/wp-admin/css/colors/light/colors.min.css created. File build/wp-admin/css/colors/midnight/colors-rtl.min.css created. File build/wp-admin/css/colors/midnight/colors.min.css created. File build/wp-admin/css/colors/ocean/colors-rtl.min.css created. File build/wp-admin/css/colors/ocean/colors.min.css created. File build/wp-admin/css/colors/sunrise/colors-rtl.min.css created. File build/wp-admin/css/colors/sunrise/colors.min.css created.
Running "uglify:core" (uglify) task File build/wp-admin/js/accordion.min.js created. File build/wp-admin/js/color-picker.min.js created. File build/wp-admin/js/comment.min.js created. File build/wp-admin/js/common.min.js created. File build/wp-admin/js/custom-background.min.js created. File build/wp-admin/js/customize-controls.min.js created. File build/wp-admin/js/customize-widgets.min.js created. File build/wp-admin/js/dashboard.min.js created. File build/wp-admin/js/edit-comments.min.js created. File build/wp-admin/js/editor.min.js created. File build/wp-admin/js/gallery.min.js created. File build/wp-admin/js/image-edit.min.js created. File build/wp-admin/js/inline-edit-post.min.js created. File build/wp-admin/js/inline-edit-tax.min.js created. File build/wp-admin/js/link.min.js created. File build/wp-admin/js/media-gallery.min.js created. File build/wp-admin/js/media-upload.min.js created. File build/wp-admin/js/media.min.js created. File build/wp-admin/js/nav-menu.min.js created. File build/wp-admin/js/password-strength-meter.min.js created. File build/wp-admin/js/plugin-install.min.js created. File build/wp-admin/js/post.min.js created. File build/wp-admin/js/postbox.min.js created. File build/wp-admin/js/revisions.min.js created. File build/wp-admin/js/set-post-thumbnail.min.js created. File build/wp-admin/js/svg-painter.min.js created. File build/wp-admin/js/tags.min.js created. File build/wp-admin/js/theme.min.js created. File build/wp-admin/js/updates.min.js created. File build/wp-admin/js/user-profile.min.js created. File build/wp-admin/js/user-suggest.min.js created. File build/wp-admin/js/widgets.min.js created. File build/wp-admin/js/word-count.min.js created. File build/wp-admin/js/wp-fullscreen.min.js created. File build/wp-admin/js/xfn.min.js created. File build/wp-includes/js/admin-bar.min.js created. File build/wp-includes/js/autosave.min.js created. File build/wp-includes/js/backbone.min.js created. File build/wp-includes/js/colorpicker.min.js created. File build/wp-includes/js/comment-reply.min.js created. File build/wp-includes/js/customize-base.min.js created. File build/wp-includes/js/customize-loader.min.js created. File build/wp-includes/js/customize-models.min.js created. File build/wp-includes/js/customize-preview-widgets.min.js created. File build/wp-includes/js/customize-preview.min.js created. File build/wp-includes/js/customize-views.min.js created. File build/wp-includes/js/heartbeat.min.js created. File build/wp-includes/js/hoverIntent.min.js created. File build/wp-includes/js/json2.min.js created. File build/wp-includes/js/masonry.min.js created. File build/wp-includes/js/mce-view.min.js created. File build/wp-includes/js/media-audiovideo.min.js created. File build/wp-includes/js/media-editor.min.js created. File build/wp-includes/js/media-models.min.js created. File build/wp-includes/js/media-views.min.js created. File build/wp-includes/js/quicktags.min.js created. File build/wp-includes/js/shortcode.min.js created. File build/wp-includes/js/tw-sack.min.js created. File build/wp-includes/js/underscore.min.js created. File build/wp-includes/js/utils.min.js created. File build/wp-includes/js/wp-ajax-response.min.js created. File build/wp-includes/js/wp-auth-check.min.js created. File build/wp-includes/js/wp-backbone.min.js created. File build/wp-includes/js/wp-list-revisions.min.js created. File build/wp-includes/js/wp-lists.min.js created. File build/wp-includes/js/wp-pointer.min.js created. File build/wp-includes/js/wp-util.min.js created. File build/wp-includes/js/wpdialog.min.js created. File build/wp-includes/js/wplink.min.js created. File build/wp-includes/js/zxcvbn-async.min.js created. File build/wp-includes/js/plupload/handlers.min.js created. File build/wp-includes/js/plupload/wp-plupload.min.js created. File build/wp-includes/js/tinymce/plugins/wordpress/plugin.min.js created. File build/wp-includes/js/tinymce/plugins/wpdialogs/plugin.min.js created. File build/wp-includes/js/tinymce/plugins/wpeditimage/plugin.min.js created. File build/wp-includes/js/tinymce/plugins/wpfullscreen/plugin.min.js created. File build/wp-includes/js/tinymce/plugins/wpgallery/plugin.min.js created. File build/wp-includes/js/tinymce/plugins/wplink/plugin.min.js created. File build/wp-includes/js/tinymce/plugins/wpview/plugin.min.js created.
Running "concat:tinymce" (concat) task File "build/wp-includes/js/tinymce/wp-tinymce.js" created.
Running "compress:tinymce" (compress) task Created build/wp-includes/js/tinymce/wp-tinymce.js.gz (122989 bytes)
Running "clean:tinymce" (clean) task Cleaning build/wp-includes/js/tinymce/wp-tinymce.js...OK
Running "jsvalidate:build" (jsvalidate) task 256 files are valid.
Done, without errors. PHPMyAdmin already installed.
Restart Nginx...
Provisioning complete in 698 seconds External network connection established, packages up to date. For further setup instructions, visit http://vvv.dev [default] Checking for host entries [default] adding to (C:/WINDOWS/system32/drivers/etc/hosts) : 192.168.50.4 vvv
-428355c329fb [default] adding to (C:/WINDOWS/system32/drivers/etc/hosts) : 192.168.50.4 vvv. dev # VAGRANT: 021f986a87aa6a5a6c50f90e04d3c0c9 (default) / bf2a65bc-7b17-4431- b368-428355c329fb [default] adding to (C:/WINDOWS/system32/drivers/etc/hosts) : 192.168.50.4 loca l.wordpress.dev # VAGRANT: 021f986a87aa6a5a6c50f90e04d3c0c9 (default) / bf2a65b c-7b17-4431-b368-428355c329fb [default] adding to (C:/WINDOWS/system32/drivers/etc/hosts) : 192.168.50.4 loca l.wordpress-trunk.dev # VAGRANT: 021f986a87aa6a5a6c50f90e04d3c0c9 (default) / b f2a65bc-7b17-4431-b368-428355c329fb [default] adding to (C:/WINDOWS/system32/drivers/etc/hosts) : 192.168.50.4 src. wordpress-develop.dev # VAGRANT: 021f986a87aa6a5a6c50f90e04d3c0c9 (default) / b f2a65bc-7b17-4431-b368-428355c329fb [default] adding to (C:/WINDOWS/system32/drivers/etc/hosts) : 192.168.50.4 buil d.wordpress-develop.dev # VAGRANT: 021f986a87aa6a5a6c50f90e04d3c0c9 (default) / bf2a65bc-7b17-4431-b368-428355c329fb
I can open everything in Google Chrome:
Visit any of the following default sites in your browser: http://local.wordpress.dev/ for WordPress stable http://local.wordpress-trunk.dev/ for WordPress trunk http://src.wordpress-develop.dev/ for trunk WordPress development files http://build.wordpress-develop.dev/ for the version of those development files built with Grunt http://vvv.dev/ for a default dashboard containing several useful tools
Problem solved
Great to hear, @dennis7742! Thanks for sticking with it.
Had the same problem as @dennis7742: I couldn't use grunt with the roots theme. But now I can confirm that running vagrant up
in Git Bash as Administrator in Windows works!
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.
Here's the entire message on vagrant up:
At revision 27348. Initializing grunt in WordPress develop... This may take a few moments. grunt-cli: The grunt command line interface. (v0.1.13)
Fatal error: Unable to find local grunt.
If you're seeing this message, either a Gruntfile wasn't found or grunt hasn't been installed locally to your project. For more information about installing and configuring grunt, please see the Getting Started guide:
So I'm headed for the Getting Started Guide. If anyone knows why grunt failed to load or install, please let me know...
Thanks