Skip to content
This repository has been archived by the owner on May 31, 2019. It is now read-only.

Packages required by kpm as a built-in #31

Closed
marrrcin opened this issue Jan 29, 2015 · 2 comments
Closed

Packages required by kpm as a built-in #31

marrrcin opened this issue Jan 29, 2015 · 2 comments

Comments

@marrrcin
Copy link

I've tried to build the ASP.NET vNext Starter Web application (default Visual Studio Project) using docker, however the tutorial provided on the site
http://blogs.msdn.com/b/webdev/archive/2015/01/14/running-asp-net-5-applications-in-linux-containers-with-docker.aspx
didn't cover or even mention lots of issues that may occur. Project as simple as the HelloWeb app with barely 3 files inside built correctly, but the Visual Studio project didn't.

The issue was caused by missing npm (also bower and grunt) in the microsoft/aspnet docker package. KPM restored lots of packages and then just threw an exception "Cannot find npm".

Stacktrace:

System.ComponentModel.Win32Exception: ApplicationName='npm', CommandLine='install', CurrentDirectory='/app', Native error= Cannot find the specified file at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x00000] in <filename unknown>:0 at Microsoft.Framework.PackageManager.ScriptExecutor.Execute (Microsoft.Framework.Runtime.Project project, System.String scriptName, System.Func2 getVariable) [0x00000] in <filename unknown>:0 at Microsoft.Framework.PackageManager.RestoreCommand+<RestoreForProject>d__1.MoveNext () [0x00000] in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter1[System.Boolean].GetResult () [0x00000] in <filename unknown>:0 at Microsoft.Framework.PackageManager.RestoreCommand+<ExecuteCommand>d__1.MoveNext () [0x00000] in <filename unknown>:0

I've resolved this issue on my environment by creating custom Dockerfile to build the project. You can it find here:
https://github.com/marrrcin/aspnet5-dockerfile

My environment : Ubuntu 14.0.1 LTS.

@akoeplinger
Copy link

@marrrcin See #28

@ahmetb
Copy link
Contributor

ahmetb commented Mar 6, 2015

Closing in favor of active discussions about this. Thanks for reporting @marrrcin.

@ahmetb ahmetb closed this as completed Mar 6, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants