执行'ng serve'命令会抛出'Access is denied'错误

时间:2018-06-12 12:35:59

标签: angular gruntjs

我从早上起就面临着一个问题。当输入'ng serve'命令来运行angular项目时,我收到'Access is denied'错误。执行grunt命令时也会出现同样的问题。有什么想法吗?

项目工作正常,直到昨天。我附上了截图供您参考。

enter image description here

1 个答案:

答案 0 :(得分:0)

确保您没有struct WithDefault {} struct WithOverride { public override string ToString() => "RO"; } static readonly WithDefault D; static readonly WithOverride O; // Original: static void Test() { D.ToString(); O.ToString(); } // IL Disassembly: .method private hidebysig static void Test () cil managed { .maxstack 1 .locals init ([0] valuetype Overrides/WithOverride) // [WithDefault] Invoke on original by address: IL_0000: ldsflda valuetype Overrides/WithDefault Overrides::D IL_0005: constrained. Overrides/WithDefault IL_000b: callvirt instance string [mscorlib]System.Object::ToString() IL_0010: pop // [WithOverride] Copy original to local, invoke on copy by address: IL_0011: ldsfld valuetype Overrides/WithOverride Overrides::O IL_0016: stloc.0 IL_0017: ldloca.s 0 IL_0019: constrained. Overrides/WithOverride IL_001f: callvirt instance string [mscorlib]System.Object::ToString() IL_0024: pop IL_0025: ret } 已经在那里运行。

您可以执行ng serve并杀死找到的任何Ctrl + Alt + Del个实例。

然后再试一次。

如果这不起作用,请检查您的文件夹权限,并确保您对该文件夹具有正确的访问权限。