Skip to content

Use n to manage node versions on RPi #307

Description

@jweisz

Seriously. Why did they call it n?
https://github.com/tj/n

This seems preferable to use over nvm because when we run scripts with sudo (which we need to when using the LED), the environment variables set by nvm to point to the current node install don't get carried over. Even with sudo -E. So then the scripts run on an older version of node and they complain that all the modules were compiled for a newer version of node. It's a mess.

Install n with:

curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions