Solucionado (ver solução)
Solucionado
(ver solução)
10
respostas

Erro ao rodar node start

Boa tarde professor, já deletei a pasta node_modules, já fiz o npm install, já tentei procurar na net, já acendi uma vela e nada até agora, olhei nos outros posts e todo mundo resolveu deletando a pasta.

Deixei a instalação do meu note igual a instalação do note do meu trabalho (onde funciona). A diferença, meu note é um Windows 7, e no trabalho é Windows 10.

Meu note:

{ 
  client: '1.0.0',
  npm: '5.0.3',
  ares: '1.10.1-DEV',
  http_parser: '2.7.0',
  icu: '58.2',
  modules: '48',
  node: '6.10.3',
  openssl: '1.0.2k',
  uv: '1.9.1',
  v8: '5.1.281.101',
  zlib: '1.2.11' 
}

note do trabalho:

{ 
  client: '1.0.0', 
  npm: '5.0.3', 
  ares: '1.10.1-DEV', 
  http_parser: '2.7.0', 
  icu: '58.2', 
  modules: '48', 
  node: '6.10.3', 
  openssl: '1.0.2k', 
  uv: '1.9.1', 
  v8: '5.1.281.101', 
  zlib: '1.2.11' 
}

O erro que é apresentado ao executar o npm start é:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\MARCIO ROSA\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'start' ]
2 info using npm@5.0.3
3 info using node@v6.10.3
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle client@1.0.0~prestart: client@1.0.0
6 silly lifecycle client@1.0.0~prestart: no script for prestart, continuing
7 info lifecycle client@1.0.0~start: client@1.0.0
8 verbose lifecycle client@1.0.0~start: unsafe-perm in lifecycle true
9 verbose lifecycle client@1.0.0~start: PATH: C:\Users\MARCIO ROSA\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\GIT\Cursos_Alura\Formacao_front_end\Frameworks_MVC\Angular_II_Parte_I\client\node_modules\.bin;C:\Program Files\Microsoft MPI\Bin\;C:\Program Files (x86)\HP SimplePass 2011\x64;C:\Program Files (x86)\HP SimplePass 2011\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\12.0\DLLShared\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\WinMerge;C:\Program Files (x86)\LINQPad5;c:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;c:\Program Files\Microsoft SQL Server\110\Tools\Binn\;c:\Program Files\Microsoft SQL Server\110\DTS\Binn\;c:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;c:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files\nodejs\;C:\Program Files\Docker Toolbox;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files\MongoDB\Server\3.4\bin;C:\Users\MARCIO ROSA\AppData\Roaming\npm
10 verbose lifecycle client@1.0.0~start: CWD: C:\GIT\Cursos_Alura\Formacao_front_end\Frameworks_MVC\Angular_II_Parte_I\client
11 silly lifecycle client@1.0.0~start: Args: [ '/d /s /c', 'npm run tsc:w' ]
12 silly lifecycle client@1.0.0~start: Returned: code: 7  signal: null
13 info lifecycle client@1.0.0~start: Failed to exec start script
14 verbose stack Error: client@1.0.0 start: `npm run tsc:w`
14 verbose stack Exit status 7
14 verbose stack     at EventEmitter.<anonymous> (C:\Users\MARCIO ROSA\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:283:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (C:\Users\MARCIO ROSA\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:886:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid client@1.0.0
16 verbose cwd C:\GIT\Cursos_Alura\Formacao_front_end\Frameworks_MVC\Angular_II_Parte_I\client
17 verbose Windows_NT 6.1.7601
18 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\MARCIO ROSA\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start"
19 verbose node v6.10.3
20 verbose npm  v5.0.3
21 error code ELIFECYCLE
22 error errno 7
23 error client@1.0.0 start: `npm run tsc:w`
23 error Exit status 7
24 error Failed at the client@1.0.0 start script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 7, true ]
10 respostas

Qual versão do Node você está usando? Primeira vez que vejo essa mensagem de erro...bizarro...

Em casa que da erro:

2 info using npm@5.1.0 3 info using node@v8.1.3

Rodei aqui no trabalho e executou com sucesso: { client: '1.0.0', npm: '5.0.3', ares: '1.10.1-DEV', http_parser: '2.7.0', icu: '58.2', modules: '48', node: '6.10.3', openssl: '1.0.2k', uv: '1.9.1', v8: '5.1.281.101', zlib: '1.2.11' }

Mesma versão do Node? Parece ser um problema na sua maquina. Qual versão do Node no trabalho?

Flavio, deixei a instalação do meu note igual a instalação do note do meu trabalho. A diferença, meu note é um Windows 7, e no trabalho é Windows 10.

Meu note:

{ 
  client: '1.0.0',
  npm: '5.0.3',
  ares: '1.10.1-DEV',
  http_parser: '2.7.0',
  icu: '58.2',
  modules: '48',
  node: '6.10.3',
  openssl: '1.0.2k',
  uv: '1.9.1',
  v8: '5.1.281.101',
  zlib: '1.2.11' 
}

note do trabalho:

{ 
  client: '1.0.0', 
  npm: '5.0.3', 
  ares: '1.10.1-DEV', 
  http_parser: '2.7.0', 
  icu: '58.2', 
  modules: '48', 
  node: '6.10.3', 
  openssl: '1.0.2k', 
  uv: '1.9.1', 
  v8: '5.1.281.101', 
  zlib: '1.2.11' 
}

O erro que é apresentado ao executar o npm start é:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\MARCIO ROSA\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'start' ]
2 info using npm@5.0.3
3 info using node@v6.10.3
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle client@1.0.0~prestart: client@1.0.0
6 silly lifecycle client@1.0.0~prestart: no script for prestart, continuing
7 info lifecycle client@1.0.0~start: client@1.0.0
8 verbose lifecycle client@1.0.0~start: unsafe-perm in lifecycle true
9 verbose lifecycle client@1.0.0~start: PATH: C:\Users\MARCIO ROSA\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\GIT\Cursos_Alura\Formacao_front_end\Frameworks_MVC\Angular_II_Parte_I\client\node_modules\.bin;C:\Program Files\Microsoft MPI\Bin\;C:\Program Files (x86)\HP SimplePass 2011\x64;C:\Program Files (x86)\HP SimplePass 2011\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\12.0\DLLShared\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\WinMerge;C:\Program Files (x86)\LINQPad5;c:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;c:\Program Files\Microsoft SQL Server\110\Tools\Binn\;c:\Program Files\Microsoft SQL Server\110\DTS\Binn\;c:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;c:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files\nodejs\;C:\Program Files\Docker Toolbox;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files\MongoDB\Server\3.4\bin;C:\Users\MARCIO ROSA\AppData\Roaming\npm
10 verbose lifecycle client@1.0.0~start: CWD: C:\GIT\Cursos_Alura\Formacao_front_end\Frameworks_MVC\Angular_II_Parte_I\client
11 silly lifecycle client@1.0.0~start: Args: [ '/d /s /c', 'npm run tsc:w' ]
12 silly lifecycle client@1.0.0~start: Returned: code: 7  signal: null
13 info lifecycle client@1.0.0~start: Failed to exec start script
14 verbose stack Error: client@1.0.0 start: `npm run tsc:w`
14 verbose stack Exit status 7
14 verbose stack     at EventEmitter.<anonymous> (C:\Users\MARCIO ROSA\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:283:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (C:\Users\MARCIO ROSA\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:886:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid client@1.0.0
16 verbose cwd C:\GIT\Cursos_Alura\Formacao_front_end\Frameworks_MVC\Angular_II_Parte_I\client
17 verbose Windows_NT 6.1.7601
18 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\MARCIO ROSA\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start"
19 verbose node v6.10.3
20 verbose npm  v5.0.3
21 error code ELIFECYCLE
22 error errno 7
23 error client@1.0.0 start: `npm run tsc:w`
23 error Exit status 7
24 error Failed at the client@1.0.0 start script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 7, true ]

Sua máquina está com algum problema que não faço ideia do que seja.

Apague a pasta node_modules, remova o Node e instale a versão 8 mais nova.

Depois, baixe novamente as dependências com npm install e tente executar o compilador.

Eu estou com o mesmo problema ele não baixa todos os módulos e também não inicia triste não ter uma solução pra isso o jeito e só assistir os videos

Oi João, segui a sugestão que dei para o Márcio? Ele ainda não respondeu, não sei se funcionou ou não.

solução!

Salve, pessoal!

Estava com problemas para rodar a Instalação das dependências da pasta client, mas bastou seguir as dicas do professor Flávio que rodou numa boa.

Deletem a pasta node_modules , instalem a última versão do Node e bora continuar o curso. \o/

Opa vlw

no meu caso peguei o erro:

npm ERR! client@1.0.0 start: npm run tsc:w npm ERR! Exit status 1

e resolvi com

$ npm install $ npm start