access port problem in Node.js

Asked

Viewed 1,626 times

1

I’m trying to learn about angular2, and I’m facing this problem. when I type : "live-server" this error appears to me below:

live-server
Error: listen EACCES 0.0.0.0:8080

I try to type the command to change the port :Node-inspector --web-port=8099 and I get the following message:

node-inspector --web-port=8099
'node-inspector' não é reconhecido como um comando interno
ou externo, um programa operável ou um arquivo em lotes.

How do I fix it ?

1 answer

1

Often this error occurs because the variable PATH was installed in Appdata instead of in the correct location.

Maybe your package was installed locally and binary,and not in the variable PATH.

Try to rotate /node_modules/node-inspector/bin/inspector.js in your project directory.

Add "C:\Program Files\nodejs"(system environment) as its variable PATH of Ode.js.

Or it may also have been an error during the actual installation of Node.js due to permission.

In this case, type the following code,to install with permission the Node.js inspector :

sudo npm install -g node-inspector

I advise you to take a look here on how to modify variables in the PATH.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.