Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running npm-install #1195

Closed
im1dermike opened this issue May 11, 2017 · 44 comments
Closed

Error running npm-install #1195

im1dermike opened this issue May 11, 2017 · 44 comments

Comments

@im1dermike
Copy link

im1dermike commented May 11, 2017

Today, I started getting errors when running npm install for my web application. I seem to have traced it to npm-gyp. Here is what I get when I try to install it:

$ npm install [email protected]

> [email protected] install C:\Development\node_modules\microtime
> node-gyp rebuild


C:\Development\node_modules\microtime>if not defined npm_config_node_gyp (node "C:\Users\me\AppData\Roaming\npm\node_modules\n                                                                                                       pm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
Traceback (most recent call last):
  File "C:\Users\me\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 16, in <module>
    sys.exit(gyp.script_main())
  File "C:\Users\me\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 545, in script_main
    return main(sys.argv[1:])
  File "C:\Users\me\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 538, in main
    return gyp_main(args)
  File "C:\Users\me\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 514, in gyp_main
    options.duplicate_basename_check)
  File "C:\Users\me\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 98, in Load
    generator.CalculateVariables(default_variables, params)
  File "C:\Users\me\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 1900, in CalculateVariables
    generator_flags.get('msvs_version', 'auto'))
  File "C:\Users\me\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSVersion.py", line 434, in SelectVisualStudioVersion
    versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)
KeyError: '2017'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Users\me\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:305:16)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\me\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "re                                                                                                       build"
gyp ERR! cwd C:\Development\node_modules\microtime
gyp ERR! node -v v7.4.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
[email protected] C:\Development\Advaxis\Advaxis.norm\Advaxis.Norm.web
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- [email protected]
+-- UNMET PEER DEPENDENCY [email protected]
`-- UNMET PEER DEPENDENCY [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN [email protected] requires a peer of @angular/common@^4.0.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/compiler@^4.0.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/core@^4.0.0 but none was installed.
npm WARN [email protected] requires a peer of rxjs@~5.0.0-beta.12 but none was installed.
npm WARN [email protected] requires a peer of zone.js@~0.6.21 but none was installed.
npm WARN [email protected] requires a peer of zone.js@~0.6.21 but none was installed.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\microtime):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
@mercurjl
Copy link

+1

1 similar comment
@gabrielgomez522
Copy link

+1

@ukphillips
Copy link

ukphillips commented May 11, 2017

This has brought our dev team to a halt. When trying to install microtime directly which is kicking off the node-gyp rebuild here is the error(s) I get:

 C:\Users\k_phillips\test  ([email protected])
 npm install [email protected]

 [email protected] install C:\Users\k_phillips\test\node_modules\microtime
 node-gyp rebuild

C:\Users\k_phillips\test\node_modules\microtime>if not defined npm_config_node_gyp (node "C:\Users\k_phillips\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\Users\k_phillips\test\node_modules\microtime\build\microtime.vcxproj]

gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\k_phillips\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\k_phillips\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\k_phillips\test\node_modules\microtime
gyp ERR! node -v v6.10.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN [email protected] requires a peer of rxjs@~5.0.0-beta.12 but none was installed.
npm WARN [email protected] requires a peer of zone.js@~0.6.21 but none was installed.
npm WARN [email protected] requires a peer of zone.js@~0.6.21 but none was installed.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\k_phillips\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "[email protected]"
npm ERR! node v6.10.0
npm ERR! npm  v4.3.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the microtime package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs microtime
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls microtime
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\k_phillips\AppData\Roaming\npm-cache\_logs\2017-05-11T17_59_58_211Z-debug.log

@im1dermike
Copy link
Author

im1dermike commented May 11, 2017

@ukphillips That is where I actually started with this. The microtime author seems to think it's a node-gyp issue. This has been a huge time waste for my team too. wadey/node-microtime#49

@skkonstantin
Copy link

I'm using windows, after the steps described here https://github.com/nodejs/node-gyp#installation, the error was gone

@ukphillips
Copy link

ukphillips commented May 11, 2017

@im1dermike I just noticed that - I am now where you are. VERY frustrating that this has all blown up without a single change to any of our code. All I can assume is a package somewhere in the dependency chain changed that has caused this mess.

@im1dermike
Copy link
Author

@ukphillips NPM's biggest issue IMO. I'm thinking that changing my package.json file to exclude the ^ prefix to packages so it won't be affected by issues like this with new versions would be smart.

@vikshv
Copy link

vikshv commented May 11, 2017

+1

@ukphillips
Copy link

Is this the same issue? The symptom sounds the same https://github.com/nodejs/node-gyp/issues/1144

@im1dermike
Copy link
Author

@skkonstantin Which steps did you follow? I ran npm install --global --production windows-build-tools and still have the issue.

@skkonstantin
Copy link

@im1dermike , I did the same thing, with administrator root . i think this error came after OS update

@gibfahn
Copy link
Member

gibfahn commented May 11, 2017

@nodejs/platform-windows any ideas? Looks like the original issue is

File "C:\Users\me\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSVersion.py", line 434, in SelectVisualStudioVersion
    versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)

which is indeed the same as #1144. (so cc/ @refack )

@im1dermike
Copy link
Author

It looks like someone (the author of pdbdf2?) has fixed it. wadey/node-microtime#49. I just blew out my node_modules folder and ran npm install and it looks like it worked!

@gibfahn
Copy link
Member

gibfahn commented May 11, 2017

It looks like someone (the author of pdbdf2?) has fixed it. wadey/node-microtime#49. I just blew out my node_modules folder and ran npm install and it looks like it worked!

So a native module was added to the dependencies, and now it's been removed again. FWIW it sounds like you can't install any native modules, so the issue is still there.

@refack
Copy link
Contributor

refack commented May 11, 2017

Not 1144, there the error is KeyError: '2017'

@im1dermike 's error has this in log: node-gyp -v v3.4.0
@ukphillips last log shows also old node-gyp: node-gyp -v v3.5.0

First thing to try is to update npm or just node-gyp

@refack
Copy link
Contributor

refack commented May 11, 2017

For posterity:
doing
npm install [email protected]
or even
npm i -g [email protected]
Is not sufficient, since when triggering the build of native addons via npm i, npm will use it's own version of node-gyp, so if you want to use Visual Studio 2017, you'll need to update npm to a version >= 4.5.0

@skynode
Copy link

skynode commented May 13, 2017

Found out that npm was using [email protected] while running npm i. But node-gyp -v yields v3.6.1.
I went into the npm folder, /Program Files (x86)/.../npm and ran npm i --save [email protected] to bring node-gyp up to date with my global install.

Errors remains (SelectVisualStudioVersion...). Version change reflected in same error stack trace.

@skynode
Copy link

skynode commented May 13, 2017

Forgot to mention, I'm running [email protected] and [email protected].

And SelectVisualStudioVersion​ is same error as KeyError: '2017'.

@refack
Copy link
Contributor

refack commented May 13, 2017

First make sure you see

gyp ERR! node -v v7.10.0
gyp ERR! node-gyp -v v3.6.1
gyp ERR! not ok

In the error output.

If you do: look at #1179

Else: do the npm upgrade dance - https://docs.npmjs.com/getting-started/installing-node
npm install npm@latest -g

@tuespetre
Copy link

@refack I ran into this issue today and I've seen that some others have been befuddled by it as well, with seemingly no resolution. I found out something and wanted to share it in case anyone else finds it useful.

Here: https://github.com/nodejs/node-gyp/blob/v3.6.2/lib/find-vs2017.js#L17

I changed that to log.warn instead of log.silly just so I could see what was coming out, and I see a pretty JSON object like I should... except before the pretty JSON object, I have a pesky WARNING: Could not find ssh-agent thanks to posh-git. Looking up and taking care of that issue resolved this issue for me.

@refack
Copy link
Contributor

refack commented Sep 14, 2017

@tuespetre Just FYI, you can make npm log at silly level with npm -ddd i.

So I'm assuming posh-git in your PS profile script tried to autorun and fails, so I'll add -NoProfile to

var psArgs = ['-ExecutionPolicy', 'Unrestricted', '-Command',
'&{Add-Type -Path \'' + csFile +
'\'; [VisualStudioConfiguration.Main]::Query()}']

@tuespetre
Copy link

@refack I did --loglevel=silly and for some reason I did get a ton of those logs but not the ones I was hoping to see from that. Only reason 😛

@refack
Copy link
Contributor

refack commented Sep 14, 2017

I did --loglevel=silly and for some reason I did get a ton of those logs but not the ones I was hoping to see from that. Only reason 😛

Well it is called silly 🤷‍♂️
Refs: dahlbyk/posh-git#484

@refack
Copy link
Contributor

refack commented Sep 14, 2017

Cross-ref: #1292

refack added a commit that referenced this issue Sep 19, 2017
PR-URL: #1292
Refs: #1195 (comment)
Reviewed-By: Ben Noordhuis <[email protected]>
@refack
Copy link
Contributor

refack commented Sep 19, 2017

@tuespetre FYI, @dahlbyk landed a fix in posh-git and we landed a fix here (but it still needs to get into a release, then be picked-up by npm)

@paulprendergast
Copy link

paulprendergast commented Nov 1, 2017

Has this been fixed?

C:\electronDevelopment\chap5\exampleEdge2>node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp http GET https://nodejs.org/download/release/v8.2.1/node-v8.2.1-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v8.2.1/node-v8.2.1-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v8.2.1/SHASUMS256.txt
gyp http GET https://nodejs.org/download/release/v8.2.1/win-x64/node.lib
gyp http GET https://nodejs.org/download/release/v8.2.1/win-x86/node.lib
gyp http 200 https://nodejs.org/download/release/v8.2.1/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v8.2.1/win-x64/node.lib
gyp http 200 https://nodejs.org/download/release/v8.2.1/win-x86/node.lib
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'C:\\Users\\Paulp\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-G',
gyp info spawn args   'msvs_version=auto',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\electronDevelopment\\chap5\\exampleEdge2\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\Paulp\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\Paulp\\.node-gyp\\8.2.1\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\Paulp\\.node-gyp\\8.2.1',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\Paulp\\AppData\\Roaming\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\Users\\Paulp\\.node-gyp\\8.2.1\\<(target_arch)\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\electronDevelopment\\chap5\\exampleEdge2',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\electronDevelopment\\chap5\\exampleEdge2\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: C:\electronDevelopment\chap5\exampleEdge2) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Users\Paulp\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:336:16)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Paulp\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\electronDevelopment\chap5\exampleEdge2
gyp ERR! node -v v8.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok

@refack
Copy link
Contributor

refack commented Nov 1, 2017

@paulprendergast is seems like your folder C:\electronDevelopment\chap5\exampleEdge2 does not have a binding.gyp file.

@paulprendergast
Copy link

Has this been resolved? if it has been resolved can you directed to page and location on page or give me direct feedback

versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)
KeyError: '2017'

attached are my logs
KeyError2017.pdf

I have tried this with
electron-edge-js
electron-edge
electron 1.7.9

it seems to be with node-gyp.
I can node-gyp build at the root at electron-edge-js and electron-edge but when i try under \tools\build.bat release 7.9.0

electron-edge-js
supports Electron 1.7.x - Node.js v7.9.0.

electron-edge
Supports Electron 1.7.x - Node.js v7.9.0.

My Computer:
Win10
VS2015
Python=2.7.9
angularCLI =latest

Environment Vars:
GYP_MSVS_VERSION= 2015

@filston2006
Copy link

run this command : meteor npm install --save @babel/runtime
All errors will disappear! Magic!!!

@montaro
Copy link

montaro commented Mar 9, 2018

After trying for many days, I found that my problem is that the nodejs aerospike client uses node-gyp for building, and the client depends on libss-dev which was not installed on the box I use (VSTS Linux Build Agent).

I added the repo and installed the package before running the npm install:

add-apt-repository 'deb http://security.ubuntu.com/ubuntu xenial-security main'
sudo apt update
sudo apt install g++ libssl1.0.0 libssl-dev

@Maheshg232
Copy link

[email protected] install C:\Users\Lenovo\AppData\Roaming\npm\node_modules\appium\node_modules\heapdump
node-gyp rebuild

C:\Users\Lenovo\AppData\Roaming\npm\node_modules\appium\node_modules\heapdump>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder. (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Lenovo\AppData\Roaming\npm\node_modules\appium\node_modules\heapdump
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\appium\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\appium\node_modules\heapdump):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

C:\Users\Lenovo>np

@Maheshg232
Copy link

how to solve this
for which mistack this error will come

@nodejs nodejs deleted a comment from mewsu May 23, 2018
@ilan-schemoul
Copy link

Refack's solution saved me after I wasted days with this issue. Try to UPDATE NPM (npm install -g npm) that's crazy how many days I lost because of that. Couldn't you check that and advice us to do that somewhere (when the package fails maybe and in the readme). Anyway thanks @refack.
Everything has broken when I update my OS. I reinstalled everything from node to meteor but also all packages deleted node-gyp, reinstalled node-gyp, every tools required via every possible way and did one thousand other things

@RodrigoBertotti
Copy link

@NitroBAY Thank you!!! npm install -g npm solved!

@MatviiStelmakh
Copy link

only this option helped https://github.com/nodejs/node-gyp#option-2

@Seb33300
Copy link

Seb33300 commented Nov 1, 2018

Be careful, You have to use Python 2.7 (and not 3.7 which is the current latest version).

@hadimsamir
Copy link

npm install --global --production windows-build-tools .. work well . Thank you.

@fjh1997
Copy link

fjh1997 commented Mar 11, 2019

after install tools

npm install --global --production windows-build-tools

You need to set new python path in environment-variable PATH. be sure not to install different version of python.

@AbdelAbdelAli
Copy link

whene i run this command ::::: npm i --s firebase @angular/fire
i get this error :;:
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\saado\Desktop\Angular-Crud\AngularFirestore\node_modules\grpc\src\node\extension_binary\node-v64-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\saado\Desktop\Angular-Crud\AngularFirestore\node_modules\grpc\src\node\extension_binary\node-v64-win32-x64-unknown --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)

@myxomor
Copy link

myxomor commented Apr 3, 2019

I had installing windows-building-tools , python2.7 and the error still occurred.
But after updating npm with npm i -g npm , installing gone done!!!

@machouz
Copy link

machouz commented Dec 2, 2019

On Mac OS doing :
nvm install 10.13.0 && nvm use 10.13.0
solved for me the problem.

@darrensapalo
Copy link

darrensapalo commented Apr 14, 2020

On Windows, what I did to fix it were the following:

  1. Download the latest Node installer for Windows.
  2. Install it.
  3. At this point, the node-gyp issue is still not resolved.
  4. Find out where your npm is running from by typing npm -l.
  5. Go to that directory. Mine was C:\Users\MY_USERNAME\AppData\Roaming.
  6. In that folder, delete the npm sub folder.
  7. Run the same installer in step 1, to repair missing files, registry settings.
  8. Once finished, npm install -g npm.

@xuantjen410
Copy link

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: concurrently "ng serve --proxy-config proxy.conf.json" "json-server --watch db.json --routes routes.json"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start 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\dell\AppData\Roaming\npm-cache_logs\2020-04-29T00_57_00_039Z-debug.log


Can you help me ??

@Sjos12
Copy link

Sjos12 commented Jul 8, 2021

From the node-gyp docs

These are the steps if you are on Windows to solve the issue

  1. Download latest Python version
  2. Download latest MSVS here
  3. Install just the build tools or install the entire Visual Studio installation using the "Desktop development with C++" workload
  4. Go to your project folder and run npm config set msvs_version {{ version of msvs you installed }}. So if you installed the 2019 edition the command would be npm config set msvs_version 2019.
  5. Finally run npm install -g node-gyp and it should work!

@nodejs nodejs locked as resolved and limited conversation to collaborators Jul 8, 2021
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