Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao iniciar servidor node.js - Windows

Olá a todos,

Instalei o node.js para Win7 x64, mas quando dou o comando npm start gera o seguinte log:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'start' ]
2 info using npm@3.10.10
3 info using node@v6.10.2
4 verbose stack Error: ENOENT: no such file or directory, open 'C:\Users\TaYnAn\alura-typer\package.json'
4 verbose stack     at Error (native)
5 verbose cwd C:\Users\TaYnAn\alura-typer
6 error Windows_NT 6.1.7601
7 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
8 error node v6.10.2
9 error npm  v3.10.10
10 error path C:\Users\TaYnAn\alura-typer\package.json
11 error code ENOENT
12 error errno -4058
13 error syscall open
14 error enoent ENOENT: no such file or directory, open 'C:\Users\TaYnAn\alura-typer\package.json'
15 error enoent ENOENT: no such file or directory, open 'C:\Users\TaYnAn\alura-typer\package.json'
15 error enoent This is most likely not a problem with npm itself
15 error enoent and is related to npm not being able to find a file.
16 verbose exit [ -4058, true ]

O que pode estar causando esse erro? Não consegui encontrar nada que resolvesse.

1 resposta
solução!

Tenta dá "npm install" e depois "npm run serve"