Giter VIP home page Giter VIP logo

Comments (3)

coreybutler avatar coreybutler commented on June 9, 2024

Did you uninstall the original version of Node before installing NVM for Windows? If you didn't, and if C:\Program Files\nodejs was still referenced by the original installation, then the symlink creation would be blocked by the original installation. This means your firewall would only apply to the old node.exe, not the one managed by NVM4W.

To be clear, you have to specify the symlink location for the node.exe, not the physical path. Otherwise Windows Firewall will ignore the rule.

To test your environment, I would recommend opening a port on the firewall, then running your app with the NVM4W version of node on that port. In other words, don't restrict the firewall the node.exe file. If this works, then it is likely a path issue (as described above).

from nvm-windows.

Ajitweb avatar Ajitweb commented on June 9, 2024

Thank you for replying @coreybutler

Yes, I had uninstalled the original nodejs and even made sure that the nodejs directory is removed from the Program Files directory on the server PC. After nvm installation, all commands of nvm/node is working as expected - except for the firewall issue.

I experimented on another machine. Here , if I allow
C:\Users<user>\AppData\Roaming\nvm<v>\node.exe in windows firewall - then I am able to acccess node from another PCs.
Allowing, C:\Program Files\nodejs\node.exe did not.

Anyway, this means nvm is working with Windows Firewall !

Now I have to find out why the same outcome isn't occurring on my server.

Thanks.

from nvm-windows.

coreybutler avatar coreybutler commented on June 9, 2024

@Ajitweb I'm glad you found clarification.

FWIW, C:\Program Files is a protected directory on Windows. It's not uncommon for Windows to require different privileges to make changes there. So, it could be a user permission issue instead of a firewall permission issue. The Wiki/common issues have a lot of notes about this. If you find yourself without a solution, trying setting the symlink to a different directory, like C:\nodejs. The big difference is that isn't a protected directory, so you can at least eliminate the OS restriction variable.

from nvm-windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.