live-server
live-server copied to clipboard
npm install -g live-server and manual way not working
So it says successfully installed I tried this both ways however I still can't run "live-server" from my terminal in my project's workspace folder.
It just says command not found
After installing it prints out [email protected]
Sorry if this is too late, but I'm new here. You need node.js and npm installed before live-server will work. Try this:
- Install npm: http://blog.npmjs.org/post/85484771375/how-to-install-npm
- Install node.js: https://nodejs.org/en/download/package-manager/
- Install live-server (you might have to do it manually): https://github.com/tapio/live-server
Note:
npm install -g
didn't work for me in Step 3, butsudo npm install -g
did. I still had some errors, but live-server seems to work without any issues, for now at least.
Hope this helps. Cheers.
THANK YOU @styles225 !!! THAT WAS A HUGE HELP!! ( can you tell I'm happy :) :) :) ) ... it was the ' sudo' that did the trick for me!!! ( thx @zDrakon for the original question! )
Hi i am relatively new to JavaScript, hope I am in the right thread with this comment. I recently downloaded ATOM and Visaul studios and every time I tried to get the Live-server to work it said 'Application not found' . So i d/l node.js and installed nmp and and live-server on the command prompt, but I am still getting the same errors. Any help would be really appreciated.
Hello, I cannot install Live Server on my Mac. It says checkPermissions Missing write access to /usr/local/lib/node_modules.
This is the message:
npm WARN deprecated [email protected]: The package has been renamed to open
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules']
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, access '/usr/local/lib/node_modules'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules' }
Hello, should I use sudo npm install -g live-server? But the word Password appears in the next line.
hi if it is too late, if you are using sudo command to install it would ask a password as it goes to admin account. so for password you have to use your password which you use to sign in or lets say your computer password.
While installing live-server on windows ,I too got error.Please help me to remove this.Thanks in advance.
This is error shown:
npm WARN deprecated [email protected]: The package has been renamed to open
C:\Users\Owner\AppData\Roaming\npm\live-server -> C:\Users\Owner\AppData\Roaming\npm\node_modules\live-server\live-server.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\live-server\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
hi , while entering live-server in windows cmd i m getting error:listen eacces :permission denied but while installing live server i didn't get any error. plz help me to remove this.
Try right clicking on the cmd app, then run as administrator.
Sorry if this is too late, but I'm new here. You need node.js and npm installed before live-server will work. Try this:
- Install npm: http://blog.npmjs.org/post/85484771375/how-to-install-npm
- Install node.js: https://nodejs.org/en/download/package-manager/
- Install live-server (you might have to do it manually): https://github.com/tapio/live-server Note:
npm install -g
didn't work for me in Step 3, butsudo npm install -g
did. I still had some errors, but live-server seems to work without any issues, for now at least.Hope this helps. Cheers.
i tried following these steps for live-server : command not found following --> https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally#manually-change-npms-default-directory then i re install live-server it din work Then i followed your steps as npm and node-version was already installed ---> sudo npm install -g live-server but still same error persist. Please Help
I was having the same issue:
I kept getting this error when I tried to run "live-sever"
bash: live-server: command not found or fish: live-server: command not found
I installed npx per: https://www.npmjs.com/package/npx
Now, by running: npx live-server I can get the server to run.
Run these command in terminal :
- Check that node.js is installed (
node -v
) - Install live server using npm (
npm install live-server -g
) - If windows says restricted access, run this command (
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
) After this typelive-server
and it works !!
3. Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
Thanks a lot, this worked awesomely.