Line 67: |
Line 67: |
| <headertabs/> | | <headertabs/> |
| | | |
− | ===Test===
| |
− | node -v
| |
| | | |
| + | ==Node Repo== |
| + | |
| + | You can install the latest versions of node direct from their repository. |
| + | |
| + | See this page for to help add the repos to SME: |
| + | https://wiki.contribs.org/Extrarepositories |
| + | |
| + | yum install smeserver-extrarepositories-node |
| + | signal-event yum-modify |
| + | config set UnsavedChanges no |
| + | |
| + | This will add a set of Node repos to your yum_repositories database. |
| + | Node v4-v11 |
| + | |
| + | You can now install a version of node from the repo eg: |
| + | |
| + | yum --enablerepo=node8 install nodejs8.9.4 |
| + | |
| + | yum --enablerepo=node11 install nodejs11.8.0 |
| + | |
| + | Remember that this installs the base RPM but you can switch versions using the 'n' version manager |
| + | |
| + | npm install -g n |
| + | |
| + | For help: |
| + | n -h |
| + | |
| + | For available versions: |
| + | n ls |
| | | |
| + | ==Test== |
| + | node -v |
| | | |
| ---- | | ---- |
| [[Category:Howto]] | | [[Category:Howto]] |