==> default: Notice: /Stage[main]/Restbase/Service::Node[restbase]/Npm::Install[/vagrant/srv/restbase]/Exec[/vagrant/srv/restbase_npm_install]/returns: npm ERR! Maximum call stack size exceeded ==> default: Error: /usr/bin/npm install --no-bin-links returned 1 instead of one of [0]
Apparently this is a known issue with npm --no-bin-links. Re-running npm would fix it, but that won't happen since the node_modules directory exists so npm::install will think there is nothing to do. We probably need a wrapper script.
Workaround is to run NPM_CONFIG_CACHE=/tmp/cache/npm NPM_CONFIG_GLOBAL=false LINK=g++ HOME=/home/vagrant /usr/bin/npm install --no-bin-links in the affected directory repeatedly until it succeeds.