[英]Why Node.js (filename) causing problems in Node.JS on Windows?
I am running Node.JS v12.13.1 on latest Windows 10 build.我在最新的 Windows 10 版本上运行 Node.JS v12.13.1。
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".我创建了一个名为“Node.js”的文件,每次我用这个文件在文件夹中调用命令
node <anything>
时,我的 NotePad++ 都会打开文件“Node.js”。 For every other files or folders, node
command works fine.对于所有其他文件或文件夹,
node
命令工作正常。
Is filename "Node.js" reserved or I have somehow badly configured system?文件名“Node.js”是保留的还是我的系统配置不当?
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编辑:NotePad++ 程序没有问题,即使在我卸载它之后,我也会弹出窗口来选择我想打开这个文件的程序
It looks like your Windows has been configured to treat files ending in *.js as editable rather than executable.看起来您的 Windows 已配置为将以 *.js 结尾的文件视为可编辑而不是可执行文件。 SeeChange File Associations in Windows to tell Windows what to do with such files.
请参阅更改 Windows 中的文件关联以告诉 Windows 如何处理此类文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.