↓ Ir para o conteúdo principal

← todas as notas

📎 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, and git.
  • The Chef JSON sets Node.js version 0.8.12, install method source, and npm 1.1.62.
  • The failure message is Chef::Exceptions::CookbookNotFound: Cookbook nodejs not found.
  • The solution is to rename the cookbook folder from nodejs-cookbook to nodejs and correct the Vagrant file.
  • After running vagrant provision, the installation completes successfully.