-
Notifications
You must be signed in to change notification settings - Fork 519
Error: EPERM: operation not permitted, mkdir 'C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\npm' #1612
Comments
I do not know if this is related, but somehow my app (React/Redux) insists on running in Development mode when i run it through IIS. This in turn makes the app try to run the ReactDevelopmentServer which results in the same error as yours (EPERM: operation not permitted, mkdir 'C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\npm').
|
How exactly are you deploying to Service Fabric? My suspicion is that you're trying to deploy a non-published application. If that is what you're doing, then when the app tries to start up, it will try to perform an If instead you were deploying a published application (e.g., the output from Closing as I think that's what the issue is, but please let us know if not. |
I am also facing the same issue. Is there any way to fix it |
I have created the ASP.NET Core Project using Angular project template. fail: Microsoft.AspNetCore.SpaServices[0] |
@SteveSanderson from the log it looks like it fails when running |
I had also few customers (I'm running shared hosting based on MSP Control - http://mspcontrol.org) which faced the same issue. Actually they never fixed this problem and used different solution. |
@grzech1983 we didn't fix it either. The good thing is that we're not affected in production. This is a dev only thing. We changed a little the |
@lucipacurar I've faced same issue with local cluster (SF SDK v 3.2.176) and VS 2017 template (v 15.8.2). Apparently the solution for me was to first start React template with |
I banged my head against this issue for some time and finally figured out how to work around this issue. It turns out to be very simple: Comment out the Startup.cs line I'm not sure what the ramifications of this change are, but it does remedy the issue. I'm sure I'll figure out what that line does for me and have to come back and update this later. It is supposed to make automatic service updating work so that when you save your .ts, .js, .cshtml, and other files, you just need to refresh the browser and see the changes. Looks like this template was created to be used in the context of an ASP.NET Core Web Application. In that context everything works just fine right out of the box. Here's the full steps:
|
I just commented the line spa.UseAngularCliServer(npmScript: "start"); in Startup.cs and it fixed for me. |
Thanks for posting this, it also resolved my problem as well with deployment to Service Fabric. |
Hi guys,
I'm using the new dotnet core 2.1 angular-cli template to create a new app which I'm trying to deploy to Service Fabric as a microservice. After the app is deployed to Service Fabric, I get the following error when I try to open it:
I know this might not be a template error and it might be related to Service Fabric, but
'C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\npm'
seems pretty odd to me because Service Fabric starts the application asNETWORK SERVICE
and not asSYSTEM
. Throughout the process list I have nonode
process running asSYSTEM
. I'm assuming it fails to start and it closes before I'm able to see it.Is there a way to avoid running
node
asSYSTEM
?The text was updated successfully, but these errors were encountered: