Visual Studio Installer未安装node.js. [英] Visual Studio Installer is not installing node.js

查看:215
本文介绍了Visual Studio Installer未安装node.js.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio Installer中,我选择了Node.js开发选项。它运行成功。但是,如果我尝试运行cmd node -v。它告诉我节点不存在。

In Visual Studio Installer, I selected the Node.js development option. It runs successfully. But, if I try to run cmd node -v. It tells me node does not exist.

我尝试了一些其他的事情,包括卸载和重新安装节点VS Installer中的.js开发选项。另外,从网站上安装最新版本的节点。

I tried a few other things including uninstalling and reinstalling the Node.js development option in VS Installer. Plus installing the latest version of node from the website.

但是,当我尝试运行预先打包的Angular解决方案时VS 2017我有问题。解决方案甚至不会启动。

However, when I try to run the pre-packed Angular solution that comes with VS 2017 I have issues. The solution will not even start.

我能做的最好的就是安装Node 6.10.3。一旦我这样做,网站就出现了。但是,我在vendor.js文件中遇到JavaScript错误。我能够继续,但当我尝试导航到另一个菜单项时,我收到此错误。加上热
模块更换似乎不起作用。 (如果我做了更改,它不会自动重新编译我的TypeScript文件。)

The best I have been able to do is install Node 6.10.3. Once I do that, the web site comes up. But, I get a JavaScript error in the vendor.js file. I am able to continue but I get this error when I try navigate to another menu item. Plus the Hot Module Replacement does not seem to be working. (It does not automatically recompile my TypeScript file if I made a change).

我认为关键我正确地安装了Node.js开发选项,因为我可以在另一台PC上运行预先打包的Angular解决方案,并且热模块替换工作正常。

I think the key is getting the Node.js development option installed correctly since I am able to run the pre-packed Angular solution on another PC and the Hot Module Replacement works fine.

如果有人对如何解决有任何想法,请告诉我。

Please let me know if anyone has any ideas on how to resolve.

Richard A. Corkery

Richard A. Corkery

推荐答案

嗨abtcabe,

欢迎来到MSDN论坛。

>>但是,如果我尝试运行cmd node -v。它告诉我节点不存在。

你在哪里运行"node -v"?

我测试它,它在我身边工作正常。请以管理员身份打开
VS2017开发人员命令提示符,输入命令"node -v",检查结果。

I test it and it works fine in my side. Please open Developer Command Prompt for VS2017 as administrator, type command "node -v", check the result.

问候,

Judyzh


这篇关于Visual Studio Installer未安装node.js.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆