Skip to content

Instantly share code, notes, and snippets.

View luixaviles's full-sized avatar

Luis Aviles luixaviles

View GitHub Profile
import { createServer, Server } from 'http';
import * as express from 'express';
import * as socketIo from 'socket.io';
import { Message } from './model';
export class ChatServer {
public static readonly PORT:number = 8080;
private app: express.Application;
private server: Server;
import { ChatServer } from './chat-server';
let app = new ChatServer().getApp();
export { app };
{
"files": [
"src/*.ts",
"src/model/*.ts"
],
"compilerOptions": {
"target": "es5"
}
}
@luixaviles
luixaviles / nvm-issues.md
Last active February 17, 2017 20:08
NVM issues on Ubuntu

Workaround on Ubuntu

nvm is not compatible with the npm config "prefix" option: currently set to "/home/user/.npm-global"
Run `nvm use --delete-prefix v6.9.2` to unset it.
user@ubuntu:~$ nvm use --delete-prefix v6.9.2 --silent
user@ubuntu:~$ node --version
v6.9.2
user@ubuntu:~$ npm --version
3.10.9