2016-10-04 78 views
0

我安裝了Node版本6.7.0。然後從命令提示符,如果我輸入「node -v」我得到以下: enter image description here如何從命令提示符運行節點?

如果我鍵入「node.exe -v」它工作正常。也請注意我輸入了「節點」,但它解釋爲「node.js」。它是文件關聯的問題嗎?如何擺脫它?

+0

相關或可能重複:http://stackoverflow.com/questions/11059211/error-code-800a1391-source-microsoft-jscript-runtime-error-running-grunt -mod – Abdul

+0

http://stackoverflow.com/questions/8278143/node-js-how-to-run-node-command-from-any-path –

回答

1

您很可能使用Windows Script Host打開「node.js」文件(檢查ADMIN/node.js文件是否存在於磁盤上)。這個錯誤不是NodeJS。 在第二種情況下,你真的正在運行node.js