📎 Webclip
Vagrant, setuping machine for Node.js - Chef failure - Stack Overflow
The post shows a Vagrant setup for a Node.js machine that fails during vagrant reload with a Chef exception. The reported error says the nodejs cookbook is missing even though the configuration adds nodejs-cookbook as a recipe.
Reading notes#
- The Vagrant file provisions the box with Chef Solo and adds recipes for
apt,build-essential,nodejs-cookbook,chef-hosts, andgit. - The Chef JSON sets Node.js version
0.8.12, install methodsource, and npm1.1.62. - The failure message is
Chef::Exceptions::CookbookNotFound: Cookbook nodejs not found. - The solution is to rename the cookbook folder from
nodejs-cookbooktonodejsand correct the Vagrant file. - After running
vagrant provision, the installation completes successfully.
