I m building a web app using angularjs and gulp. Whenever, I run gulp serve,the website is working, however, the CSS is not working. I m getting the following error in the command prompt. I have tried to reinstall node_modules, node.js and gulp. However, the same error shows up.
npm WARN excluding symbolic link index.js -> lib/sass.js
npm WARN excluding symbolic link lib\index.js -> sass.js
bufferutil#1.2.1 install C:\Users\User\Desktop\grpkgb\project\node_modules\bufferutil
node-gyp rebuild
C:\Users\User\Desktop\grpkgb\project\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Python executable "C:\Users\User\Anaconda3\python.EXE" is v3.5.1, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at failPythonVersion (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:406:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:395:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:193:7)
gyp ERR! stack at emitTwo (events.js:100:13)
gyp ERR! stack at ChildProcess.emit (events.js:185:7)
gyp ERR! stack at maybeClose (internal/child_process.js:827:16)
gyp ERR! stack at Socket.<anonymous> (internal/child_process.js:319:11)
gyp ERR! stack at emitOne (events.js:90:13)
gyp ERR! stack at Socket.emit (events.js:182:7)
gyp ERR! stack at Pipe._onclose (net.js:475:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\User\Desktop\grpkgb\project\node_modules\bufferutil
gyp ERR! node -v v5.7.1
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
npm WARN install:bufferutil#1.2.1 bufferutil#1.2.1 install: `node-gyp rebuild`
npm WARN install:bufferutil#1.2.1 Exit status 1
utf-8-validate#1.2.1 install C:\Users\User\Desktop\grpkgb\project\node_modules\utf-8-validate
node-gyp rebuild
C:\Users\User\Desktop\grpkgb\project\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Python executable "C:\Users\User\Anaconda3\python.EXE" is v3.5.1, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at failPythonVersion (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:406:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:395:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:193:7)
gyp ERR! stack at emitTwo (events.js:100:13)
gyp ERR! stack at ChildProcess.emit (events.js:185:7)
gyp ERR! stack at maybeClose (internal/child_process.js:827:16)
gyp ERR! stack at Socket.<anonymous> (internal/child_process.js:319:11)
gyp ERR! stack at emitOne (events.js:90:13)
gyp ERR! stack at Socket.emit (events.js:182:7)
gyp ERR! stack at Pipe._onclose (net.js:475:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\User\Desktop\grpkgb\project\node_modules\utf-8-validate
gyp ERR! node -v v5.7.1
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
npm WARN install:utf-8-validate#1.2.1 utf-8-validate#1.2.1 install: `node-gyp rebuild`
npm WARN install:utf-8-validate#1.2.1 Exit status 1
projectFile#0.0.0 C:\Users\User\Desktop\grpkgb\project
+-- bootstrap-sass#3.3.6 extraneous
+-- gulp-sass#2.2.0 extraneous
`-- sass#0.5.0 extraneous
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents#1.0.9
npm WARN projectFile#0.0.0 No repository field.
npm WARN projectFile#0.0.0 No license field.
The error says it all
gyp ERR! stack Error: Python executable
"C:\Users\User\Anaconda3\python.EXE" is v3.5.1, which is not supported
by gyp. gyp ERR! stack You can pass the --python switch to point to
Python >= v2.5.0 & < 3.0.0.
You need to install Python this version that works with Node gyp.
You can find the Node gyp DOCs here for more details
Related
My code is this
const { Board, Led } = require("johnny-five");
const board = new Board();
board.on("ready", () =\> {
// Create an Led on pin 13
const led = new Led(13);
// Blink every half second
led.blink(500);
});
And the error I'm getting is this
Error: Cannot find module 'serialport'
Require stack:
- A:\Projects\Web\Arduino\node_modules\johnny-five\lib\board.js
- A:\Projects\Web\Arduino\node_modules\johnny-five\lib\accelerometer.js
- A:\Projects\Web\Arduino\node_modules\johnny-five\lib\johnny-five.js
- A:\Projects\Web\Arduino\app.js
I tried to install serialport and after installing I get this error
TypeError: serialport.list is not a function
at Board.detect (A:\Projects\Web\Arduino\node_modules\johnny-five\lib\board.js:42:16)
at new Board (A:\Projects\Web\Arduino\node_modules\johnny-five\lib\board.js:291:23)
at Object.<anonymous> (A:\Projects\Web\Arduino\app.js:2:15)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47
[nodemon] app crashed - waiting for file changes before starting...
I also tried this code.
var five = require("johnny-five");
var board = new five.Board({ port: "COM22" });
board.on("ready", function(){
var lead = new five.Led(13);
lead.blink(1000);
})
Then I get this error.
Error: Cannot find module 'firmata'
And when I try to install firmata I get this error
npm ERR! code 1 npm ERR! path C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\firmata\node_modules#serialport\bindings npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install --tag-prefix #serialport/bindings# || node-gyp rebuild npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp#9.0.0 npm ERR! gyp info using node#16.14.0 | win32 | x64 npm ERR! gyp info find Python using Python version 3.10.5 found at "C:\Users\username Mengistu\AppData\Local\Programs\Python\Python310\python.exe"npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more detailsnpm ERR! gyp ERR! find VS looking for Visual Studio 2015 npm ERR! gyp ERR! find VS - not found npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS ************************************************************** npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload. npm ERR! gyp ERR! find VS For more information consult the documentation at: npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windowsnpm ERR! gyp ERR! find VS ************************************************************** npm ERR! gyp ERR! find VS npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47) npm ERR! gyp ERR! stack at C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16 npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:363:14)npm ERR! gyp ERR! stack at C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14 npm ERR! gyp ERR! stack at C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:384:16 npm ERR! gyp ERR! stack at C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7 npm ERR! gyp ERR! stack at C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16 npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:406:5) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:520:28) npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1092:16) npm ERR! gyp ERR! System Windows_NT 10.0.19044 npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd C:\Users\username Mengistu\AppData\Roaming\npm\node_modules\firmata\node_modules#serialport\bindings npm ERR! gyp ERR! node -v v16.14.0 npm ERR! gyp ERR! node-gyp -v v9.0.0 npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\username Mengistu\AppData\Local\npm-cache_logs\2022-10-28T08_17_34_241Z-debug-0.log
Hello I am tiring to add a plugin to Backstage, but get an error with the first step which is to install roadiehq
yarn --cwd packages/app add #roadiehq/backstage-plugin-jira
The error that I am getting is the following
error /Users/blartp31/developerportal/node_modules/#vscode/sqlite3: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /Users/blartp31/developerportal/node_modules/#vscode/sqlite3
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp#7.1.2
gyp info using node#16.15.1 | darwin | x64
gyp info find Python using Python version 3.8.5 found at "/Library/Frameworks/Python.framework/Versions/3.8/bin/python3"
gyp http GET https://nodejs.org/download/release/v16.15.1/node-v16.15.1-headers.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND blartp31
gyp ERR! stack at ClientRequest.onError (/Users/blartp31/developerportal/node_modules/tunnel-agent/index.js:177:17)
gyp ERR! stack at Object.onceWrapper (node:events:642:26)
gyp ERR! stack at ClientRequest.emit (node:events:527:28)
gyp ERR! stack at Socket.socketErrorListener (node:_http_client:454:9)
gyp ERR! stack at Socket.emit (node:events:527:28)
gyp ERR! stack at emitErrorNT (node:internal/streams/destroy:157:8)
gyp ERR! stack at emitErrorCloseNT (node:internal/streams/destroy:122:3)
gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/Users/blartp31/.nvm/versions/node/v16.15.1/bin/node" "/Users/blartp31/developerportal/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /Users/blartp31/developerportal/node_modules/#vscode/sqlite3
I have also tried to install it within the packages/app directory as mentioned in their GitHub README. I cannot continue with the plugin because it cannot be recognized within the packages.
I've been trying to use these programs but it won't install. I get this message when trying to install sqlite 3. And when i do "node ." it just tells me to install it manually and i looked up a tutorial but it wasn't JUST for discord.
C:\Users\roser\OneDrive\Desktop\ROSYBREE>npm install sqlite3
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
> sqlite3#5.0.1 install C:\Users\roser\OneDrive\Desktop\ROSYBREE\node_modules\sqlite3
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v5.0.1/napi-v6-win32-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for sqlite3#5.0.1 and node#14.15.3 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
nothing.c
win_delay_load_hook.cc
nothing.vcxproj -> C:\Users\roser\OneDrive\Desktop\ROSYBREE\node_modules\sqlite3\build\Release\\nothing.lib
unpack_sqlite_dep
The system cannot find the path specified.
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209
,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Users\roser\OneDrive\Desktop\ROSYBREE\node_modules\sqlite3\build\
deps\action_before_build.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Windows_NT 10.0.19041
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\Users\\roser\\OneDrive\\Desktop\\ROSYBREE\\node_modules\\sqlite3\\lib\\binding\\napi-v6-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\roser\\OneDrive\\Desktop\\ROSYBREE\\node_modules\\sqlite3\\lib\\binding\\napi-v6-win32-x64" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=6" "--node_napi_label=napi-v6"
gyp ERR! cwd C:\Users\roser\OneDrive\Desktop\ROSYBREE\node_modules\sqlite3
gyp ERR! node -v v14.15.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack 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 build --fallback-to-build --module=C:\Users\roser\OneDrive\Desktop\ROSYBREE\node_modules\sqlite3\lib\binding\napi-v6-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\roser\OneDrive\Desktop\ROSYBREE\node_modules\sqlite3\lib\binding\napi-v6-win32-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\roser\OneDrive\Desktop\ROSYBREE\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
node-pre-gyp ERR! System Windows_NT 10.0.19041
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\roser\\OneDrive\\Desktop\\ROSYBREE\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\roser\OneDrive\Desktop\ROSYBREE\node_modules\sqlite3
node-pre-gyp ERR! node -v v14.15.3
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\roser\OneDrive\Desktop\ROSYBREE\node_modules\sqlite3\lib\binding\napi-v6-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\roser\OneDrive\Desktop\ROSYBREE\node_modules\sqlite3\lib\binding\napi-v6-win32-x64 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6' (1)
npm WARN ROSYBREE#1.0.0 No description
npm WARN ROSYBREE#1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3#5.0.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3#5.0.1 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\roser\AppData\Roaming\npm-cache\_logs\2021-01-10T19_45_31_708Z-debug.log
I am using expo cli to build a react native mobile application, and I am trying to install firebase to add chat and notifications features, and I am getting this error when applying this command
expo install firebase
Does anyone have an idea to solve this?
I am using expo cli to build a react native mobile application, and I am trying to install firebase to add chat and notifications features, and I am getting this error when applying this command
expo install firebase
Does anyone have an idea to solve this?
[4/5] ⠠ grpc
error C:\Users\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\grpc: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build --library=static_library
Arguments:
Directory: C:\Users\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\grpc
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp#0.14.0
node-pre-gyp info using node#14.15.1 | win32 | x64
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp info check checked for "C:\Users\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node" (not found)
node-pre-gyp http GET https://node-precompiled-binaries.grpc.io/grpc/v1.24.2/node-v83-win32-x64-unknown.tar.gz
node-pre-gyp http 404 https://node-precompiled-binaries.grpc.io/grpc/v1.24.2/node-v83-win32-x64-unknown.tar.gz
node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.24.2/node-v83-win32-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for grpc#1.24.2 and node#14.15.1 (node-v83 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://node-precompiled-binaries.grpc.io/grpc/v1.24.2/node-v83-win32-x64-unknown.tar.gz
gyp info it worked if it ends with ok
gyp info using node-gyp#7.1.2
gyp info using node#14.15.1 | win32 | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp#7.1.2
gyp info using node#14.15.1 | win32 | x64
gyp info find Python using Python version 3.9.0 found at "C:\Python39\python.exe"
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 VS2019 (16.8.30717.126) found at:
gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
gyp ERR! find VS - "Visual Studio C++ core features" missing
gyp ERR! find VS checking VS2017 (15.9.28307.1321) found at:
gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community"
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\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
gyp ERR! stack at C:\Users\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\node-gyp\lib\find-visualstudio.js:74:16
gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
gyp ERR! stack at C:\Users\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\node-gyp\lib\find-visualstudio.js:70:14
gyp ERR! stack at C:\Users\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\node-gyp\lib\find-visualstudio.js:372:16
gyp ERR! stack at C:\Users\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack at C:\Users\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack at ChildProcess.exithandler (child_process.js:315:5)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)
gyp ERR! System Windows_NT 10.0.19041
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\grpc\\src\\node\\extension_binary\\node-v83-win32-x64-unknown\\grpc_node.node" "--module_name=grpc_node" "--module_path=C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\grpc\\src\\node\\extension_binary\\node-v83-win32-x64-unknown" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83"
gyp ERR! cwd C:\Users\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\grpc
gyp ERR! node -v v14.15.1
gyp ERR! node-gyp -v v7.1.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
node-pre-gyp ERR! System Windows_NT 10.0.19041
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Tech One\\Desktop\\FSW\\FinalProject\\latest\\backend\\fueldelivery_react\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd C:\Users\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\grpc
node-pre-gyp ERR! node -v v14.15.1
node-pre-gyp ERR! node-pre-gyp -v v0.14.0
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\Tech One\Desktop\FSW\FinalProject\latest\backend\fueldelivery_react\node_modules\grpc\src\node\extension_binary\node-v83
yarnpkg exited with non-zero code: 1
Error: yarnpkg exited with non-zero code: 1
at ChildProcess.completionListener (C:\Users\Tech One\AppData\Roaming\npm\node_modules\expo-cli\node_modules\#expo\spawn-async\src\spawnAsync.ts:65:13)
at Object.onceWrapper (events.js:422:26)
at ChildProcess.emit (events.js:315:20)
at ChildProcess.cp.emit (C:\Users\Tech One\AppData\Roaming\npm\node_modules\expo-cli\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (internal/child_process.js:1048:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
...
at Object.spawnAsync [as default] (C:\Users\Tech One\AppData\Roaming\npm\node_modules\expo-cli\node_modules\#expo\spawn-async\src\spawnAsync.ts:26:19)
at YarnPackageManager._runAsync (C:\Users\Tech One\AppData\Roaming\npm\node_modules\expo-cli\node_modules\#expo\package-manager\src\NodePackageManagers.ts:288:31)
at YarnPackageManager.addAsync (C:\Users\Tech One\AppData\Roaming\npm\node_modules\expo-cli\node_modules\#expo\package-manager\src\NodePackageManagers.ts:241:16)
at installAsync (C:\Users\Tech One\AppData\Roaming\npm\node_modules\expo-cli\src\commands\install.ts:117:3)
at Command.<anonymous> (C:\Users\Tech One\AppData\Roaming\npm\node_modules\expo-cli\src\exp.ts:302:7)
use npm install #mapbox/node-pre-gyp --save, then uninstall the firebase you tried to install, using npm uninstall firebase, now use npm install firebase.
Upgrade firebase 6.3.4 a 8.2.0 con npm install firebase
I want to install firebase-tools to implement Firebase Cloud Functions. Trying to install the firebase module via npm but always get an error. Tried with many node version such as 6.11.5, 8.9.4 & 9.5.0. All versions are giving same issue. Can you please help me out to resolve this issue.
Node Version- v 9.5.0
npm - v5.6.0
This is the output of the terminal.
C:\Windows\system32>npm install -g firebase
grpc#1.9.1 install C:\Users\PankajKapoor\AppData\Roaming\npm\node_modules\fire
base\node_modules\grpc
node-pre-gyp install --fallback-to-build --library=static_library
node-pre-gyp ERR! Tried to download(undefined): https://storage.googleapis.com/g
rpc-precompiled-binaries/node/grpc/v1.9.1/node-v59-win32-x64-unknown.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for grpc#1.9.1 and node#9.5.0 (no
de-v59 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python2.7", you can set the
PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_mo
dules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder. (C:\Program Files\nodejs\node_mod
ules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\grac
eful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:166:21)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodej
s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--f
allback-to-build" "--library=static_library" "--module=C:\Users\PankajKapoor\
AppData\Roaming\npm\node_modules\firebase\node_modules\grpc\src\node\ex
tension_binary\node-v59-win32-x64-unknown\grpc_node.node" "--module_name=grpc_
node" "--module_path=C:\Users\PankajKapoor\AppData\Roaming\npm\node_module
s\firebase\node_modules\grpc\src\node\extension_binary\node-v59-win32-x64
-unknown" "--python=python2.7"
gyp ERR! cwd C:\Users\PankajKapoor\AppData\Roaming\npm\node_modules\firebase\nod
e_modules\grpc
gyp ERR! node -v v9.5.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.e
xe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.j
s configure --fallback-to-build --library=static_library --module=C:\Users\Panka
jKapoor\AppData\Roaming\npm\node_modules\firebase\node_modules\grpc\src\node\ext
ension_binary\node-v59-win32-x64-unknown\grpc_node.node --module_name=grpc_node
--module_path=C:\Users\PankajKapoor\AppData\Roaming\npm\node_modules\firebase\no
de_modules\grpc\src\node\extension_binary\node-v59-win32-x64-unknown --python=py
thon2.7' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\PankajKapoor\A
ppData\Roaming\npm\node_modules\firebase\node_modules\grpc\node_modules\node-pre
-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:160:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:943:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/chi
ld_process.js:220:5)
node-pre-gyp ERR! System Windows_NT 6.3.9600
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Pank
ajKapoor\AppData\Roaming\npm\node_modules\firebase\node_modules\grpc\nod
e_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" "--l
ibrary=static_library"
node-pre-gyp ERR! cwd C:\Users\PankajKapoor\AppData\Roaming\npm\node_modules\fir
ebase\node_modules\grpc
node-pre-gyp ERR! node -v v9.5.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
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\PankajKapoor\AppData\Roaming\npm\nod
e_modules\firebase\node_modules\grpc\src\node\extension_binary\node-v59-win32-x6
4-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\PankajKa
poor\AppData\Roaming\npm\node_modules\firebase\node_modules\grpc\src\node\extens
ion_binary\node-v59-win32-x64-unknown --python=python2.7' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc#1.9.1 install: node-pre-gyp install --fallback-to-build --library =static_library
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc#1.9.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\PankajKapoor\AppData\Roaming\npm-cache_logs\2018-02-19T15
_34_36_592Z-debug.log
Looks like you need to install Python
Python.com - downloads for Windows
Try with this command
npm install firebase --force