-
Notifications
You must be signed in to change notification settings - Fork 885
Nodejs doesn't work #293
Comments
When you run boxen with the default set up, it doesn't actually do anything more than prepare NodeJS, you'll have to include it in a manifest somewhere. For example, in my class people::carwin {
# NodeJS stuff
class { 'nodejs::global': version => 'v0.10.5' }
nodejs::module { 'bower': node_version => 'v0.10.5' }
nodejs::module { 'ninja': node_version => 'v0.10.5' }
} You'll probably want to examine the usage section of that boxen project. |
Oh, I didn't know that was needed as well. Thanks! |
I'm updated to the most recent version 3.4.7 nodejs pupplefile and I don't get this error anymore. I didn't need to actually include it in the manifest outside of the include statement. |
Scratch that last comment, the error came back. I didn't really want to create a people manifest - is there a way to just default it in the site.pp manifest? |
Yes, just add the corresponding code to the default node in site.pp. |
Thank @wfarr! Here's the code you add to your site.pp manifest for others who come to this issue: class { 'nodejs::global':
version => 'v0.10'
} You would place this inside the node default curly braces. |
Do I need to re-run the boxen script or can I manually install node with nodenv? (Spoiler: The latter doesn't work.) |
Hi henry74, thanks for posting that, it fixed the problem I was having. i love boxen |
Hi,
Just got into boxen and installed the default setup. But now I'm having problems with nodejs:
➜ ~ node
nodenv: couldn't find any version specified for use
Any ideas what's going on and how to solve this?
Thanks!
The text was updated successfully, but these errors were encountered: