-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'live-server' is not recognized as an internal or external command, operable program or batch file. #312
Comments
Did you install the package globally? |
yeah, I did,
|
This is occurring in my monorepo as well. Child projects are not able to find live-server although it is present in .bin directory inside node_modules |
after installig npm install -g live-server then i type live-server it is showing like ---'live-server' is not recognized as an internal or external command, Is there any solution to fix this issue |
same problem here |
Has anyone one ever found a solution ? |
In the trillo project I just installed it locally with 'npm install live-server --save-dev' and it works, but I don't know if it's better than to install it globally |
But how to install the package globally? |
Had the same issue because I had installed live-server as an extension in VSCode. Try installing through npm globally with "npm install -g live-server" and run start script again. Fixed it for me. |
That worked for me, thank you |
Hi guys,this worked for me as well.Thanks very much |
hello guys, i'm having a problem in trillo's project, i can't run my normal "npm run start" command and i'm having problem installing the node-sass, even while i followed his command in the command line which is "npm install"....pls i need help!!! i've been sourcing for answers but none. |
what you get when executing the command
|
For me adding "%appdata%\npm" to path worked. To know how to set path you can follow this tutorial |
working for me, thanks |
If this is not working, try this too:
|
try typing npx live-server in the terminal to run |
Thanks, @DonnovanJiles70122 . I haven't had to use Live Server to render something in probably a year or more and somehow this is the first comment I've seen where it was suggested to use npx to run. Thanks for saving the day. 🙌 |
help me guys please no one way is work for me i tried almost every way . |
It's not a final solution but if you're using VS Code then just having the extension installed is enough - there's a button in the bottom ribbon across the bottom of the window in vs code which says something like "go live" and clicking that will automatically launch it in live server. You can also delete both live-server globally and also locally in your project kill your node modules folder, package-lock.json, and any cache folders (like dist or parcel-cache depending on the stack you're using) and then rerun the live-server install. Sometimes I've had this issue because some other package installed some dependency that's the same dep but a different version number and the conflict kept live-server from finding the dep IT needed. Can't hurt to try. 🤷🏻♂️ |
try npx live-server |
1.firstly check your computer whether the node.js is installed or not (if not: downloaded from internet)(command promt) problem solved. |
|
solved. thx
ne 3. 9. 2023 v 15:38 odesílatel yadunandanks ***@***.***>
napsal:
… 1.firstly check your computer whether the node.js is installed or not (if
not: downloaded from internet)(command promt) 2.after installed the node js
go to command prompt type ' npm install -g live-server' (command promt) 3.
go to vs code ( help>new terminal) and then type: 'set-ExecutionPolicy
RemoteSigned -Scope CurrentUser ' 4.after execuction
type:'Get-ExecutionPolicy' 5.again execution type:'Get-ExecutionPolicy
-list'. 6. after that type : 'live-server' 7. done
problem solved.
—
Reply to this email directly, view it on GitHub
<#312 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATVATXLHS6LPLPQNI4B4CVTXYSB5LANCNFSM4HKYV7JQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
S pozdravem,
Jaroslav Dušek
+ 420 770 132 352
<http://www.linkedin.com/in/jaroslav-dušek-b98212205>
|
Did you solved this issue, current struggling with this issue |
I installed live-server as a global package but I got this message

The text was updated successfully, but these errors were encountered: