Skip to content

Not able to install the npm win-dpapi@1.1.0 error is occuring #3

Open

Description

@karthiktanj

Could you please anyone help to resolve this issue

Failed at the win-dpapi@1.1.0 install script.
win-dpapi@1.1.0 install: node-gyp rebuild

Activity

  1. karthiktanj commented on Sep 10, 2020

    @karthiktanj
    Author

    Error while installing the win dpapi in angular/CLI 8.2.1 version. Could you tell me how to resolve this issue

    C:\Angular_EventLog\EncryptDecrypt\node_modules\win-dpapi>if not defined npm_config_node_gyp (node "C:\Users\23179387\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\23179387\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
    gyp ERR! find VS
    gyp ERR! find VS msvs_version not set from command line or npm config
    gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
    gyp ERR! find VS checking VS2017 (15.9.28307.1033) found at:
    gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community"
    gyp ERR! find VS - found "Visual Studio C++ core features"
    gyp ERR! find VS - missing any VC++ toolset
    gyp ERR! find VS checking VS2017 (15.9.28307.718) found at:
    gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\SQL"
    gyp ERR! find VS - "Visual Studio C++ core features" missing
    gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
    gyp ERR! find VS looking for Visual Studio 2015
    gyp ERR! find VS - not found
    gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
    gyp ERR! find VS
    gyp ERR! find VS **************************************************************
    gyp ERR! find VS You need to install the latest version of Visual Studio
    gyp ERR! find VS including the "Desktop development with C++" workload.
    gyp ERR! find VS For more information consult the documentation at:
    gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
    gyp ERR! find VS **************************************************************
    gyp ERR! find VS
    gyp ERR! configure error
    gyp ERR! stack Error: Could not find any Visual Studio installation to use
    gyp ERR! stack at VisualStudioFinder.fail (C:\Users\23179387\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
    gyp ERR! stack at findVisualStudio2013 (C:\Users\23179387\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16)
    gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\23179387\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
    gyp ERR! stack at findVisualStudio2015 (C:\Users\23179387\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14)
    gyp ERR! stack at regSearchKeys (C:\Users\23179387\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16)
    gyp ERR! stack at regGetValue (C:\Users\23179387\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7)
    gyp ERR! stack at C:\Users\23179387\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
    gyp ERR! stack at ChildProcess.exithandler (child_process.js:301:5)
    gyp ERR! stack at ChildProcess.emit (events.js:198:13)
    gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
    gyp ERR! System Windows_NT 10.0.17134
    gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\23179387\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
    gyp ERR! cwd C:\Angular_EventLog\EncryptDecrypt\node_modules\win-dpapi
    gyp ERR! node -v v10.16.1
    gyp ERR! node-gyp -v v5.1.0
    gyp ERR! not ok
    npm WARN karma-jasmine-html-reporter@1.5.4 requires a peer of jasmine-core@>=3.5 but none is installed. You must install peer dependencies yourself.
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\karma\node_modules\fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules@angular\compiler-cli\node_modules\fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! win-dpapi@1.1.0 install: node-gyp rebuild
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the win-dpapi@1.1.0 install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR! C:\Users\23179387\AppData\Roaming\npm-cache_logs\2020-09-10T11_05_10_848Z-debug.log

  2. binaryhq commented on Dec 2, 2020

    @binaryhq

    installing windowns-build-tools could solve the problem
    run cmd as administrator

    npm i -g windows-build-tools

  3. MidhunSai commented on Dec 3, 2020

    @MidhunSai

    @Ningappa after installing windows-build-tools still the issue coming for me. Can any one help me out to install this module without node-gyp rebuild issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions