npm não funciona no prompt comando,dá esse erro
C:\Users\luish>npm start
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! Missing script: "start"
npm ERR!
npm ERR! Did you mean one of these?
npm ERR! npm star # Mark your favorite packages
npm ERR! npm stars # View packages marked as favorites
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\luish\AppData\Local\npm-cache\_logs\2022-07-27T03_51_42_843Z-debug-0.log
Soluções para a tarefa
Respondido por
0
Resposta:
abre o powershell como administrador e roda:
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
depois
npm install --global --production npm-windows-upgrade
depois
npm-windows-upgrade --npm-version latest
Perguntas interessantes