Oi Flávio , obrigado pela resposta. Mas o procedimento indicado no link eu já havia feito (inclusive rodar os comando npm e nodejs dentro da pasta alurapic)
A novidade é a versão do nodeJs , então eu removi o node que veio no SO usando o comando :
"sudo apt-get remove nodejs"
Em seguida para instalar a versão 4 eu segui o procedimento do Ask ubuntu (http://askubuntu.com/questions/672994/how-to-install-nodejs-4-on-ubuntu-15-04-64-bit-edition)
e o procedimento descrito no link foi
1 - executar "wget -qO- https://deb.nodesource.com/setup_4.x | sudo bash -"
2 - executar "sudo apt-get install --yes nodejs"
Após executar este procedimento eu verifiquei a versão do nodejs pelo comando :
"nodejs -v"
obtive a resposta "v4.4.2"
Para validar eu fui em meu projeto de "Hello word" (como descrito nos posts anteriores) e ele funcionou.
Com o nodejs funcionando retornei ao projeto alurapic e tentei subir o servidor , mas ele falhou.
Bom , vendo o log eu notei que o npm executa o comando node e não nodejs , só p/ ter certeza da versão eu executei o comando "node -v" e obtive "v4.4.2"
Outra coisa que fiz foi executar os comandos usando o sudo, mas o problema continuou.
Abaixo segue uma copia do terminal onde eu executei os comando e um cat no log gerado pelo npm
'''
anderson@anderson-lap:~/treinamento/angular/alurapic$ pwd
/home/anderson/treinamento/angular/alurapic
anderson@anderson-lap:~/treinamento/angular/alurapic$ npm start
alurapic@1.0.0 start /home/anderson/treinamento/angular/alurapic
node server.js
module.js:327
throw err;
^
Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/home/anderson/treinamento/angular/alurapic/config/express.js:1:77)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
npm ERR! Linux 4.2.0-16-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.4.2
npm ERR! npm v2.15.0
npm ERR! code ELIFECYCLE
npm ERR! alurapic@1.0.0 start: node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the alurapic@1.0.0 start script 'node server.js'.
npm ERR! This is most likely a problem with the alurapic package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs alurapic
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls alurapic
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/anderson/treinamento/angular/alurapic/npm-debug.log
anderson@anderson-lap:~/treinamento/angular/alurapic$
anderson@anderson-lap:~/treinamento/angular/alurapic$
anderson@anderson-lap:~/treinamento/angular/alurapic$ cat npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start' ]
2 info using npm@2.15.0
3 info using node@v4.4.2
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart alurapic@1.0.0
6 info start alurapic@1.0.0
7 verbose unsafe-perm in lifecycle true
8 info alurapic@1.0.0 Failed to exec start script
9 verbose stack Error: alurapic@1.0.0 start: node server.js
9 verbose stack Exit status 1
9 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:217:16)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at EventEmitter.emit (events.js:172:7)
9 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at ChildProcess.emit (events.js:172:7)
9 verbose stack at maybeClose (internal/child_process.js:827:16)
9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
10 verbose pkgid alurapic@1.0.0
11 verbose cwd /home/anderson/treinamento/angular/alurapic
12 error Linux 4.2.0-16-generic
13 error argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
14 error node v4.4.2
15 error npm v2.15.0
16 error code ELIFECYCLE
17 error alurapic@1.0.0 start: node server.js
17 error Exit status 1
18 error Failed at the alurapic@1.0.0 start script 'node server.js'.
18 error This is most likely a problem with the alurapic package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error node server.js
18 error You can get information on how to open an issue for this project with:
18 error npm bugs alurapic
18 error Or if that isn't available, you can get their info via:
18 error
18 error npm owner ls alurapic
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]
anderson@anderson-lap:~/treinamento/angular/alurapic$
anderson@anderson-lap:~/treinamento/angular/alurapic$
anderson@anderson-lap:~/treinamento/angular/alurapic$ nodejs server.js
module.js:327
throw err;
^
Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/home/anderson/treinamento/angular/alurapic/config/express.js:1:77)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
anderson@anderson-lap:~/treinamento/angular/alurapic$
anderson@anderson-lap:~/treinamento/angular/alurapic$
anderson@anderson-lap:~/treinamento/angular/alurapic$ sudo nodejs server.js
module.js:327
throw err;
^
Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/home/anderson/treinamento/angular/alurapic/config/express.js:1:77)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
anderson@anderson-lap:~/treinamento/angular/alurapic$
anderson@anderson-lap:~/treinamento/angular/alurapic$
anderson@anderson-lap:~/treinamento/angular/alurapic$ sudo node server.js
module.js:327
throw err;
^
Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/home/anderson/treinamento/angular/alurapic/config/express.js:1:77)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
anderson@anderson-lap:~/treinamento/angular/alurapic$
anderson@anderson-lap:~/treinamento/angular/alurapic$
anderson@anderson-lap:~/treinamento/angular/alurapic$
anderson@anderson-lap:~/treinamento/angular/alurapic$ sudo npm start
alurapic@1.0.0 start /home/anderson/treinamento/angular/alurapic
node server.js
module.js:327
throw err;
^
Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/home/anderson/treinamento/angular/alurapic/config/express.js:1:77)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
npm ERR! Linux 4.2.0-16-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.4.2
npm ERR! npm v2.15.0
npm ERR! code ELIFECYCLE
npm ERR! alurapic@1.0.0 start: node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the alurapic@1.0.0 start script 'node server.js'.
npm ERR! This is most likely a problem with the alurapic package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs alurapic
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls alurapic
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/anderson/treinamento/angular/alurapic/npm-debug.log
anderson@anderson-lap:~/treinamento/angular/alurapic$
'''