• 14
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

Node.js forgets it's been installed?

I installed node via nvm on a fresh ubuntu 14.04 system. Everything worked great. Next day I boot up and node isn't installed:

The program 'node' can be found in the following packages:
 * node
 * nodejs-legacy
Try: sudo apt-get install <selected package>

I try 'nvm install stable' and get:

v0.12.5 is already installed.
Now using node v0.12.5 (npm v2.11.2)

which works fine (as far as I can see) until the next reboot. I've tried all the obvious 'nvm use ####' and remove/reinstall. No effect.

How do I make the install stick across a reboot?

You have to setup a default version of node to be available globally.

nvm alias default v0.11.13

I suggest running nvm use stable, then doing node --version and then setting your default to the latest stable version

  • 2
Reply Report

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags