简体   繁体   中英

How to run node from command prompt?

I installed Node version 6.7.0. Then from command prompt if I type "node -v" I get following: 在此处输入图片说明

If I type "node.exe -v" it works fine. Also please note I typed "node" but it interpreted it as "node.js".Is it a problem of file association? How to get rid of it?

Most likely you are opening "node.js" file using Windows Script Host (check that ADMIN/node.js file exists at disk). This error isn't NodeJS. In second case you are really running node.js

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM