Skip to content
This repository has been archived by the owner on May 22, 2018. It is now read-only.

Nodejs doesn't work #293

Closed
siancu opened this issue May 27, 2013 · 8 comments
Closed

Nodejs doesn't work #293

siancu opened this issue May 27, 2013 · 8 comments

Comments

@siancu
Copy link

siancu commented May 27, 2013

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!

@carwin
Copy link

carwin commented May 27, 2013

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 modules/people/manifests/carwin.pp I have:

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.

@siancu
Copy link
Author

siancu commented Jun 7, 2013

Oh, I didn't know that was needed as well. Thanks!

@siancu siancu closed this as completed Jun 7, 2013
@henry74
Copy link

henry74 commented Jul 11, 2013

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.

@henry74
Copy link

henry74 commented Jul 19, 2013

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?

@wfarr
Copy link
Contributor

wfarr commented Jul 19, 2013

Yes, just add the corresponding code to the default node in site.pp.

@henry74
Copy link

henry74 commented Jul 22, 2013

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.

@suzzee
Copy link

suzzee commented Aug 30, 2013

Do I need to re-run the boxen script or can I manually install node with nodenv? (Spoiler: The latter doesn't work.)

@cyberrecon
Copy link

Hi henry74, thanks for posting that, it fixed the problem I was having. i love boxen

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

6 participants