access port problem on node.js

0

I'm trying to learn about angular2, and I'm encountering this problem. when I type: "live-server" I get this error below:

live-server
Error: listen EACCES 0.0.0.0:8080

I try to enter the command to change the port: node-inspector --web-port = 8099 and the following message appears:

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 this?

    
asked by anonymous 25.06.2016 / 14:46

1 answer

0

Many times this error occurs because the PATH variable was installed in the AppData rather than in the correct location.

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

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

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

Or there may also have been an error during the installation of node.js itself for permission.

In this case, enter the following code, to install with permission the inspector node.js:

sudo npm install -g node-inspector

I advise you to take a look here on modifying variables in PATH .

    
25.06.2016 / 15:05