Попытка установить argon2@0.16.2 установить в проект Angular - PullRequest
0 голосов
/ 07 октября 2018

Я пытаюсь пройти курс под названием магистр безопасности университета Ангуляр.

Проблема в том, что я не могу установить argon2 Что нужно для установки, чтобы получить успешную установку argon2

package.json

{
  ...
    "@types/express": "^4.0.36",
    "@types/lodash": "^4.14.70",
    "argon2": "^0.16.1",
  ...
}

Я получаю эту трассировку стека Ошибка :

> argon2@0.16.2 install D:\CURSOS\AngularSecurity\angular-security-course\node_modules\argon2
> node-gyp rebuild


D:\CURSOS\AngularSecurity\angular-security-course\node_modules\argon2>if not defined npm_config_node_gyp (node "C:\Users\valdezoa\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\valdezoa\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
System.TypeInitializationException: The type initializer for 'Microsoft.Build.Shared.NativeMethodsShared' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
   at Microsoft.Build.Shared.NativeMethodsShared.get_IsLinux()
   at Microsoft.Build.Shared.NativeMethodsShared..cctor()
   --- End of inner exception stack trace ---
   at Microsoft.Build.Shared.NativeMethodsShared.get_IsUnixLike()
   at Microsoft.Build.Shared.FileUtilities.LooksLikeUnixFilePath(String value, String baseDirectory)
   at Microsoft.Build.CommandLine.MSBuildApp.GatherCommandLineSwitches(ArrayList commandLineArgs, CommandLineSwitches commandLineSwitches)
   at Microsoft.Build.CommandLine.MSBuildApp.GatherAllSwitches(String commandLine, CommandLineSwitches& switchesFromAutoResponseFile, CommandLineSwitches& switchesNotFromAutoResponseFile)
   at Microsoft.Build.CommandLine.MSBuildApp.Execute(String commandLine)

Unhandled Exception: System.TypeInitializationException: The type initializer for 'Microsoft.Build.Shared.NativeMethodsShared' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
   at Microsoft.Build.Shared.NativeMethodsShared.get_IsLinux()
   at Microsoft.Build.Shared.NativeMethodsShared..cctor()
   --- End of inner exception stack trace ---
   at Microsoft.Build.Shared.NativeMethodsShared.get_IsUnixLike()
   at Microsoft.Build.Shared.FileUtilities.LooksLikeUnixFilePath(String value, String baseDirectory)
   at Microsoft.Build.CommandLine.MSBuildApp.GatherCommandLineSwitches(ArrayList commandLineArgs, CommandLineSwitches commandLineSwitches)
   at Microsoft.Build.CommandLine.MSBuildApp.GatherAllSwitches(String commandLine, CommandLineSwitches& switchesFromAutoResponseFile, CommandLineSwitches& switchesNotFromAutoResponseFile)
   at Microsoft.Build.CommandLine.MSBuildApp.Execute(String commandLine)
   at Microsoft.Build.CommandLine.MSBuildApp.Main()
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 3762504530
gyp ERR! stack     at ChildProcess.onExit (C:\Users\valdezoa\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\valdezoa\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\CURSOS\AngularSecurity\angular-security-course\node_modules\argon2
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
...