Cria projeto
npm init
Executar
node app.js
Criar arquivo
node file.js
Baixa o repositório, o --save configura no package.json
npm install console-log-hello-world --save
Ambiente de desenvolvimento
npm install console-log-hello-world --save-dev
publicar no site do NPM
npm adduser
Remover repositórios
npm uninstall console-log-hello-world --save
Remover publicação
npm unpublish --force
Instalar Socket
npm install websocket --save
Rodar Socket
npm socket.js