Baterka
Baterka

Reputation: 3714

Why Node.js (filename) causing problems in Node.JS on Windows?

I am running Node.JS v12.13.1 on latest Windows 10 build.

I create file named "Node.js" and everytime I call command node <anything> in folder with this file, my NotePad++ gets opened with file "Node.js". For every other files or folders, node command works fine.

Is filename "Node.js" reserved or I have somehow badly configured system?

EDIT: Not problem with NotePad++ program, even after I uninstalled it I am getting popup to select with what program I want to open this file

Upvotes: 0

Views: 315

Answers (1)

Rob Raisch
Rob Raisch

Reputation: 17357

It looks like your Windows has been configured to treat files ending in *.js as editable rather than executable. See Change File Associations in Windows to tell Windows what to do with such files.

Upvotes: 1

Related Questions