相关疑难解决方法(0)

为ASP.NET Core 2.1角度项目配置Dockerfile

我是Docker的新手,目前正在尝试使用Angular项目创建ASP.NET Core 2.1.我在Docker for Windows上使用Linux容器,我的IDE是VS2017社区版.

目前,我收到此错误:

[1]确保已安装'npm',并且可以在其中一个PATH目录中找到.当前PATH环境变量是:/ usr/local/sbin:/ usr/local/bin:/ usr/sbin:/ usr/bin:/ sbin:/ bin确保可执行文件位于其中一个目录中,或者更新PATH .

我相信我需要在我的Docker实例中安装Node.js或者你调用它的任何东西,它应该通过Dockerfile.请在我的假设中指出我的错误.以及如何确保安装依赖项,无论我使用什么样的容器?我期待我未来的项目将安装在不同的平台上.

docker .net-core docker-for-windows asp.net-core-2.0 angular

6
推荐指数
1
解决办法
5562
查看次数

Microsoft.AspNetCore.NodeServices:无法启动节点进程

我正在使用Microsoft.AspNetCore.NodeServices 1.1.1我的ASP.Net Core应用程序.一切都工作正常,但现在我在一台新电脑上,我收到以下错误:

System.InvalidOperationException:
Failed to start Node process. To resolve this:.

[1] Ensure that Node.js is installed and can be found in one of the PATH directories.
    Current PATH enviroment variable is: ....
    Make sure the Node executable is in one of those directories, or update your PATH.

[2] See the InnerException for further details of the cause.
Run Code Online (Sandbox Code Playgroud)

我已从此问题中删除了路径变量,但其中列出了安装Node的目录.

node -v在终端给我v6.11.0这样它被添加到路径.

代码中的任何内容都没有改变,因为它上次工作,只有我的电脑.有谁知道什么可能是错的?

asp.net-core

5
推荐指数
1
解决办法
8869
查看次数