-
Notifications
You must be signed in to change notification settings - Fork 847
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
grunt packaged not installed for wordpress-develop on first vagrant up #825
Comments
I think we need to test this a bit more. I ran through |
I did another |
GruntJS 1.0.0 was released today http://gruntjs.com/blog/2016-04-04-grunt-1.0.0-released Grunt-cli is also now 1.x, currently On a fresh VVV setup and an initial vagrant@vvv:/srv/www/wordpress-develop$ grunt --version
grunt-cli v1.2.0
grunt v0.4.5 This all appears correct as Grunt |
I was able to reproduce this today on a fresh It then took too many destroys and re-provisions, but I think I found how to reproduce. In If I allow npm output to be shown by changing that to Now that I'm there, I haven't dug into possible reasons yet, but a short term fix may just be to allow for the output. |
This appears to be related, if not the issue: npm/npm#9633 |
The installation of local npm packages was running into trouble due to what is likely a race condition caused by slow shared drives between the host and guest machines. This is mostly a guess, but seems plausible. We can instead handle the initial SVN checkout, the npm package installation, and the initial build via grunt in the VM's `/tmp` machine. Once this is all prepped, it is then moved to the final location in `/srv/www/wordpress-develop` before other scripts that install WordPress run. Anything involving files runs quite a bit quicker during the initial setup. The move of the directory takes a long while though, which kind of negates the original speed. :) But speed isn't the problem, incomplete local npm packages is. Fixes #825.
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. |
The
grunt
package should be installed, as it's specified in wordpress-develop's package.json.However, it is not installed on first
vagrant up
, although other packages are installed.To investigate, I made logs of
npm install
appear rather than be swallowed to dev/null, and see this output.If I login to the machine after provisioning and run
npm install
, it installsgrunt
as well asgrunt-jsvalidate
.The text was updated successfully, but these errors were encountered: