Firabase Functions deploy had errors - firebase

I'm trying to deploy my app to firebase but every time give me this issue but I don't know what is it need !?
this is my code in app.js
//construct
const functions = require("firebase-functions")
const express = require('express');
const app = express();
const path = require('path');
const bodyParser = require('body-parser');
const cors = require('cors');
const config = require('./config');
//const port = config.port;
//initialize
app.use(cors());
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true}));
app.use(express.static(path.join(__dirname,'../public')));
const books= require('./routes/books');
app.use('/books', books);
exports.app = functions.https.onRequest(app)
//start server code
// app.listen(port, ()=> {
// console.log('node serve has been started on port : '+port);
// })
functions: Finished running predeploy script. i functions: ensuring necessary APIs are enabled...
functions: all necessary APIs are enabled i functions: preparing functions directory for uploading... i functions: packaged functions
(57.1 KB) for uploading
functions: functions folder uploaded successfully i hosting[angular6test-1c758]: beginning deploy... i
hosting[angular6test-1c758]: found 68 files in public
hosting[angular6test-1c758]: file upload complete i functions: updating Node.js 6 function app(us-central1)... !
functions[app(us-central1)]: Deployment error. Build failed: exit
status 1
canvas#2.4.1 install /workspace/node_modules/canvas
node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404):
https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.4.1/canvas-v2.4.1-node-v48-linux-glibc-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for canvas#2.4.1 and
node#6.16.0 (node-v48 ABI, glibc) (falling back to source compile with
node-gyp) /bin/sh: 1: pkg-config: not found gyp: Call to 'pkg-config
pixman-1 --libs' returned exit status 127 while in binding.gyp. 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
(/nodejs/lib/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:219:12)
gyp ERR! System Linux 4.15.0-1028-gcp gyp ERR! command
"/nodejs/bin/node"
"/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
"configure" "--fallback-to-build"
"--module=/workspace/node_modules/canvas/build/Release/canvas.node"
"--module_name=canvas"
"--module_path=/workspace/node_modules/canvas/build/Release"
"--napi_version=3" "--node_abi_napi=napi" "--napi_build_version=0"
"--node_napi_label=node-v48" gyp ERR! cwd
/workspace/node_modules/canvas gyp ERR! node -v v6.16.0 gyp ERR!
node-gyp -v v3.4.0 gyp ERR! not ok node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/nodejs/bin/node
/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
configure --fallback-to-build
--module=/workspace/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/workspace/node_modules/canvas/build/Release --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v48' (1) node-pre-gyp ERR! stack at ChildProcess.
(/workspace/node_modules/canvas/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13) node-pre-gyp
ERR! stack at ChildProcess.emit (events.js:191:7) node-pre-gyp
ERR! stack at maybeClose (internal/child_process.js:920:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit
(internal/child_process.js:230:5) node-pre-gyp ERR! System Linux
4.15.0-1028-gcp node-pre-gyp ERR! command "/nodejs/bin/node" "/workspace/node_modules/canvas/node_modules/.bin/node-pre-gyp"
"install" "--fallback-to-build" node-pre-gyp ERR! cwd
/workspace/node_modules/canvas node-pre-gyp ERR! node -v v6.16.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0 node-pre-gyp ERR! not ok
Failed to execute '/nodejs/bin/node
/nodejs/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
configure --fallback-to-build
--module=/workspace/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/workspace/node_modules/canvas/build/Release --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v48' (1) aa14#0.0.1 /workspace `-- merge-images#1.1.0
npm ERR! Linux 4.15.0-1028-gcp npm ERR! argv "/nodejs/bin/node"
"/nodejs/bin/npm" "--global-style" "--production" "--fetch-retries=5"
"--fetch-retry-factor=2" "--fetch-retry-mintimeout=1000" "install"
"/workspace" npm ERR! node v6.16.0 npm ERR! npm v3.10.10 npm ERR!
code ELIFECYCLE
npm ERR! canvas#2.4.1 install: node-pre-gyp install
--fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the canvas#2.4.1 install script 'node-pre-gyp install
--fallback-to-build'. 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 canvas package, npm ERR! not with npm itself. npm
ERR! Tell the author that this fails on your system: npm ERR!
node-pre-gyp install --fallback-to-build npm ERR! You can get
information on how to open an issue for this project with: npm ERR!
npm bugs canvas npm ERR! Or if that isn't available, you can get their
info via: npm ERR! npm owner ls canvas npm ERR! There is likely
additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /workspace/npm-debug.log
Functions deploy had errors with the following functions:
app
To try redeploying those functions, run:
firebase deploy --only functions:app
To continue deploying other features (such as database), run:
firebase deploy --except functions
Error: Functions did not deploy properly.
**
I Found the answer
**
firebase deploy using node 6 as default
add "engines": { "node": "8" } to upgrade the node

Related

grunt dependencies "while found" & cannot resolve

I'm a junior programmer and I got a mission to run old code on my computer.
When I try to do npm install in the project folder I get these errors:
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: grunt-mocha-istanbul#3.0.1
npm ERR! Found: grunt#1.5.3
npm ERR! node_modules/grunt
npm ERR! dev grunt#"^1.0.1" from the root project
npm ERR! peer grunt#">=0.4.0" from grunt-concurrent#2.3.1
npm ERR! node_modules/grunt-concurrent
npm ERR! dev grunt-concurrent#"^2.0.0" from the root project
npm ERR! 8 more (grunt-contrib-connect, grunt-contrib-jshint, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer grunt#"0.4.x" from grunt-mocha-istanbul#3.0.1
npm ERR! node_modules/grunt-mocha-istanbul
npm ERR! dev grunt-mocha-istanbul#"^3.0.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: grunt#0.4.5
npm ERR! node_modules/grunt
npm ERR! peer grunt#"0.4.x" from grunt-mocha-istanbul#3.0.1
npm ERR! node_modules/grunt-mocha-istanbul
npm ERR! dev grunt-mocha-istanbul#"^3.0.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\dotan\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dotan\AppData\Local\npm-cache\_logs\2022-08-14T06_34_16_477Z-debug-0.log
In addition when I'm using administrator cmd and run grunt --version I get: grunt-cli v1.4.0
and when I run npm i grunt from admin cmd I get (on my windows 11):
C:\Windows\system32>npm i grunt
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path C:\
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir 'C:\'
npm ERR! [Error: EPERM: operation not permitted, mkdir 'C:\'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: 'C:\\'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dotan\AppData\Local\npm-cache\_logs\2022-08-14T06_57_44_173Z-debug-0.log
and when using the same command (npm i grunt) in the terminal in the project folder I get:
PS C:\Users\dotan\Desktop\ECO-OS\ecoos> npm i grunt
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN idealTree Removing dependencies.grunt in favor of devDependencies.grunt
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: ecoos#0.4.2
npm WARN Found: grunt#1.5.3
npm WARN node_modules/grunt
npm WARN peer grunt#">=0.4.0" from grunt-concurrent#2.3.1
npm WARN node_modules/grunt-concurrent
npm WARN dev grunt-concurrent#"^2.0.0" from the root project
npm WARN 9 more (grunt-contrib-connect, grunt-contrib-jshint, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer grunt#"0.4.x" from grunt-mocha-istanbul#3.0.1
npm WARN node_modules/grunt-mocha-istanbul
npm WARN dev grunt-mocha-istanbul#"^3.0.1" from the root project
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'grunt-istanbul#0.6.2',
npm WARN EBADENGINE required: { node: '~0.12.0' },
npm WARN EBADENGINE current: { node: 'v16.16.0', npm: '8.11.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'karma#0.13.22',
npm WARN EBADENGINE required: { node: '0.10 || 0.12 || 4 || 5' },
npm WARN EBADENGINE current: { node: 'v16.16.0', npm: '8.11.0' }
npm WARN EBADENGINE }
npm WARN deprecated angular-aria#1.8.3: For the actively supported Angular, see https://www.npmjs.com/package/#angular/core. AngularJS support has officially ended. For extended AngularJS support options, see https://goo.gle/angularjs-path-forward.
npm WARN deprecated angular-animate#1.8.3: For the actively supported Angular, see https://www.npmjs.com/package/#angular/core. AngularJS support has officially ended. For extended AngularJS support options, see https://goo.gle/angularjs-path-forward.
npm WARN deprecated angular#1.8.3: For the actively supported Angular, see https://www.npmjs.com/package/#angular/core. AngularJS support has officially ended. For extended AngularJS support options, see https://goo.gle/angularjs-path-forward.
[##################] / reify:node-inspector: timing metavuln:calculate:security-advisory:socket
npm ERR! code 1
npm ERR! path C:\Users\dotan\Desktop\ECO-OS\ecoos\node_modules\v8-debug:security-advisory:socket
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
npm ERR! Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\dotan\AppData\Roaming\nvm\v16.16.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\dotan\Desktop\ECO-OS\ecoos\node_modules\v8-debug\build\debug\v0.7.7\node-v93-win32-x64\debug.node --module_name=debug --module_path=C:\Users\dotan\Desktop\ECO-OS\ecoos\node_modules\v8-debug\build\debug\v0.7.7\node-v93-win32-x64' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp#0.6.39
npm ERR! node-pre-gyp info using node#16.16.0 | win32 | x64
npm ERR! node-pre-gyp info check checked for "C:\Users\dotan\Desktop\ECO-OS\ecoos\node_modules\v8-debug\build\debug\v0.7.7\node-v93-win32-x64\debug.node" (not found)
npm ERR! node-pre-gyp http GET https://node-inspector.s3.amazonaws.com/debug/v0.7.7/node-v93-win32-x64.tar.gz
npm ERR! node-pre-gyp http 404 https://node-inspector.s3.amazonaws.com/debug/v0.7.7/node-v93-win32-x64.tar.gz
npm ERR! node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.com/debug/v0.7.7/node-v93-win32-x64.tar.gz
npm ERR! node-pre-gyp ERR! Pre-built binaries not found for v8-debug#0.7.7 and node#16.16.0 (node-v93 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp http 404 status code downloading tarball https://node-inspector.s3.amazonaws.com/debug/v0.7.7/node-v93-win32-x64.tar.gz
npm ERR! node-pre-gyp ERR! Tried to download(undefined): https://node-inspector.s3.amazonaws.com/debug/v0.7.7/node-v93-win32-x64.tar.gz
npm ERR! node-pre-gyp ERR! Pre-built binaries not found for v8-debug#0.7.7 and node#16.16.0 (node-v93 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp http Connection closed while downloading tarball file
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.16.0 | win32 | x64
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.16.0 | win32 | x64
npm ERR! gyp info ok
npm ERR! gyp info ok
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.16.0 | win32 | x64
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.16.0 | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.6 found at "C:\Python310\python.exe"
npm ERR! gyp info find Python using Python version 3.10.6 found at "C:\Python310\python.exe"
npm ERR! gyp info find VS using VS2022 (17.3.32804.467) found at:
npm ERR! gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info find VS using VS2022 (17.3.32804.467) found at:
npm ERR! gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn C:\Python310\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'C:\\Users\\dotan\\AppData\\Roaming\\nvm\\v16.16.0\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'msvs',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Users\\dotan\\Desktop\\ECO-OS\\ecoos\\node_modules\\v8-debug\\build\\config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Users\\dotan\\AppData\\Roaming\\nvm\\v16.16.0\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Users\\dotan\\AppData\\Local\\node-gyp\\Cache\\16.16.0\\include\\node\\common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=C:\\Users\\dotan\\AppData\\Local\\node-gyp\\Cache\\16.16.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\dotan\\AppData\\Roaming\\nvm\\v16.16.0\\node_modules\\npm\\node_modules\\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\dotan\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.16.0\\\\<(target_arch)\\\\node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\\Users\\dotan\\Desktop\\ECO-OS\\ecoos\\node_modules\\v8-debug',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'C:\\Users\\dotan\\Desktop\\ECO-OS\\ecoos\\node_modules\\v8-debug\\build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn C:\Python310\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'C:\\Users\\dotan\\AppData\\Roaming\\nvm\\v16.16.0\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'msvs',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Users\\dotan\\Desktop\\ECO-OS\\ecoos\\node_modules\\v8-debug\\build\\config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Users\\dotan\\AppData\\Roaming\\nvm\\v16.16.0\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Users\\dotan\\AppData\\Local\\node-gyp\\Cache\\16.16.0\\include\\node\\common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=C:\\Users\\dotan\\AppData\\Local\\node-gyp\\Cache\\16.16.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\dotan\\AppData\\Roaming\\nvm\\v16.16.0\\node_modules\\npm\\node_modules\\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\dotan\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.16.0\\\\<(target_arch)\\\\node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\\Users\\dotan\\Desktop\\ECO-OS\\ecoos\\node_modules\\v8-debug',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'C:\\Users\\dotan\\Desktop\\ECO-OS\\ecoos\\node_modules\\v8-debug\\build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! Traceback (most recent call last):
npm ERR! File "C:\Users\dotan\AppData\Roaming\nvm\v16.16.0\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 45, in <module>
npm ERR! sys.exit(gyp.script_main())
npm ERR! File "C:\Users\dotan\AppData\Roaming\nvm\v16.16.0\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 662, in script_main
npm ERR! return main(sys.argv[1:])
npm ERR! File "C:\Users\dotan\AppData\Roaming\nvm\v16.16.0\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 654, in main
npm ERR! return gyp_main(args)
npm ERR! File "C:\Users\dotan\AppData\Roaming\nvm\v16.16.0\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 639, in gyp_main
npm ERR! generator.GenerateOutput(flat_list, targets, data, params)
npm ERR! File "C:\Users\dotan\AppData\Roaming\nvm\v16.16.0\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 2162, in GenerateOutput
npm ERR! sln = MSVSNew.MSVSSolution(
npm ERR! File "C:\Users\dotan\AppData\Roaming\nvm\v16.16.0\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSNew.py", line 228, in __init__
npm ERR! self.Write()
npm ERR! File "C:\Users\dotan\AppData\Roaming\nvm\v16.16.0\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSNew.py", line 367, in Write
npm ERR! f.close()
npm ERR! File "C:\Users\dotan\AppData\Roaming\nvm\v16.16.0\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\common.py", line 413, in close
npm ERR! os.rename(self.tmp_path, filename)
npm ERR! FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:\\Users\\dotan\\Desktop\\ECO-OS\\ecoos\\node_modules\\v8-debug\\build\\binding.sln.gyp.4ckqfiz7.tmp' -> 'C:\\Users\\dotan\\Desktop\\ECO-OS\\ecoos\\node_modules\\v8-debug\\build\\binding.sln'
npm ERR! gyp info ok
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.onCpExit (C:\Users\dotan\AppData\Roaming\nvm\v16.16.0\node_modules\npm\node_modules\node-gyp\lib\configure.js:261:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Windows_NT 10.0.22000
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\dotan\\AppData\\Roaming\\nvm\\v16.16.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\dotan\\Desktop\\ECO-OS\\ecoos\\node_modules\\v8-debug\\build\\debug\\v0.7.7\\node-v93-win32-x64\\debug.node" "--module_name=debug" "--module_path=C:\\Users\\dotan\\Desktop\\ECO-OS\\ecoos\\node_modules\\v8-debug\\build\\debug\\v0.7.7\\node-v93-win32-x64"
npm ERR! gyp ERR! cwd C:\Users\dotan\Desktop\ECO-OS\ecoos\node_modules\v8-debug
npm ERR! gyp ERR! node -v v16.16.0
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\dotan\AppData\Roaming\nvm\v16.16.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\dotan\Desktop\ECO-OS\ecoos\node_modules\v8-debug\build\debug\v0.7.7\node-v93-win32-x64\debug.node --module_name=debug --module_path=C:\Users\dotan\Desktop\ECO-OS\ecoos\node_modules\v8-debug\build\debug\v0.7.7\node-v93-win32-x64' (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\dotan\Desktop\ECO-OS\ecoos\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:527:28)
npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.22000
npm ERR! node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\dotan\\Desktop\\ECO-OS\\ecoos\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd C:\Users\dotan\Desktop\ECO-OS\ecoos\node_modules\v8-debug
npm ERR! node-pre-gyp ERR! node -v v16.16.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.6.39
npm ERR! node-pre-gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dotan\AppData\Local\npm-cache\_logs\2022-08-14T06_57_28_583Z-debug-0.log
Here are the program dependencies from the package.json file:
"dependencies": {
"acl": "~0.4.4",
"angular-material": "^1.0.1",
"angular-toastr": "^1.7.0",
"angularjs-toaster": "^1.1.0",
"async": "^2.0.0-rc.2",
"body-parser": "^1.14.2",
"bower": "^1.4.1",
"cfenv": "~1.0.0",
"chalk": "^1.1.0",
"compression": "^1.5.0",
"connect-flash": "~0.1.1",
"connect-mongo": "~1.1.0",
"consolidate": "~0.14.0",
"cookie-parser": "^1.3.2",
"crypto": "0.0.3",
"csvtojson": ">=0.5.2",
"event-stream": "^3.3.2",
"express": "^4.13.1",
"express-session": "^1.11.3",
"file-stream-rotator": "~0.0.6",
"forever": "~0.15.1",
"generate-password": "^1.1.1",
"glob": "^7.0.0",
"grunt": "^1.0.1",
"grunt-cli": "~1.4.0",
"helmet": "~1.3.0",
"jasmine-core": "^2.3.4",
"lodash": "^4.5.0",
"method-override": "^2.3.3",
"mocha": "~2.4.5",
"mongoose": "~4.4.4",
"morgan": "^1.6.1",
"multer": "~1.1.0",
"nodemailer": "^2.2.0",
"owasp-password-strength-test": "^1.3.0",
"passport": "~0.3.2",
"passport-facebook": "^2.0.0",
"passport-github": "~1.1.0",
"passport-google-oauth": "~1.0.0",
"passport-linkedin": "~1.0.0",
"passport-local": "^1.0.0",
"passport-paypal-openidconnect": "^0.1.1",
"passport-twitter": "^1.0.2",
"pdfkit": "^0.7.2",
"phantom": "^2.1.7",
"phantom-html2pdf": "^2.0.2",
"phantom-proxy": "^0.1.792",
"phantomjs-prebuilt": "^2.1.7",
"regression": "^1.2.1",
"save-svg-as-png": "^1.0.2",
"serve-favicon": "^2.3.0",
"socket.io": "^1.3.7",
"stream-to-mongo": "^0.1.5",
"swig": "^1.4.2",
"toastr": "^2.1.2",
"validator": "^5.2.0"
},
"devDependencies": {
"coveralls": "^2.11.4",
"grunt": "^1.0.1",
"grunt-concurrent": "^2.0.0",
"grunt-contrib-copy": "~1.0.0",
"grunt-contrib-csslint": "~1.0.0",
"grunt-contrib-cssmin": "~1.0.1",
"grunt-contrib-jshint": "~1.0.0",
"grunt-contrib-less": "^1.0.1",
"grunt-contrib-sass": "^1.0.0",
"grunt-contrib-uglify": "~1.0.1",
"grunt-contrib-watch": "~1.0.0",
"grunt-env": "~0.4.4",
"grunt-eslint": "~18.0.0",
"grunt-karma": "~0.12.1",
"grunt-mocha-istanbul": "~5.0.1",
"grunt-mocha-test": "~0.12.7",
"grunt-ng-annotate": "^2.0.1",
"grunt-node-inspector": "~0.4.1",
"grunt-nodemon": "~0.4.0",
"grunt-protractor-coverage": "~0.2.15",
"grunt-protractor-runner": "^3.0.0",
"gulp": "^3.9.0",
"gulp-angular-templatecache": "^1.7.0",
"gulp-autoprefixer": "^3.1.0",
"gulp-concat": "^2.6.0",
"gulp-csslint": "~0.3.0",
"gulp-cssmin": "~0.1.7",
"gulp-eslint": "~2.0.0",
"gulp-jshint": "^2.0.0",
"gulp-karma": "~0.0.4",
"gulp-less": "^3.0.3",
"gulp-livereload": "^3.8.0",
"gulp-load-plugins": "^1.0.0-rc.1",
"gulp-mocha": "^2.1.2",
"gulp-ng-annotate": "^2.0.0",
"gulp-nodemon": "^2.0.3",
"gulp-protractor": "^2.1.0",
"gulp-rename": "^1.2.2",
"gulp-sass": "^2.0.3",
"gulp-uglify": "^1.2.0",
"gulp-util": "^3.0.6",
"karma": "~0.13.21",
"karma-chrome-launcher": "~0.2.0",
"karma-coverage": "~0.5.3",
"karma-firefox-launcher": "~0.1.6",
"karma-jasmine": "~0.3.6",
"karma-ng-html2js-preprocessor": "^0.2.1",
"karma-phantomjs-launcher": "~1.0.0",
"load-grunt-tasks": "^3.2.0",
"mock-fs": "~3.8.0",
"run-sequence": "^1.1.1",
"should": "^8.2.2",
"supertest": "^1.0.1"
}
I currently using npm 8.11.0, 16.16.0.
Thanks a lot.

How do i install Sqlite 3 and Sequelize on a project manually?

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

"Failed at the sqlite3#3.1.13 install script 'node-pre-gyp install --fallback-to-build'" on Windows

I'm trying to install Gekko and I get the following error:
node-pre-gyp ERR! Tried to download(undefined): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v48-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for sqlite3#3.1.13 and node#6.9.4 (node-v48 ABI) (falling back to source compile with node-gyp)
C:\Users\SOBER CHECK\Downloads\gekko-develop\gekko-develop\node_modules\sqlite3>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" clean ) else (node "" clean )
C:\Users\SOBER CHECK\Downloads\gekko-develop\gekko-develop\node_modules\sqlite3>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" configure --fallback-to-build "--module=C:\Users\SOBER CHECK\Downloads\gekko-develop\gekko-develop\node_modules\sqlite3\lib\binding\node-v48-win32-x64\node_sqlite3.node" --module_name=node_sqlite3 "--module_path=C:\Users\SOBER CHECK\Downloads\gekko-develop\gekko-develop\node_modules\sqlite3\lib\binding\node-v48-win32-x64" ) else (node "" configure --fallback-to-build "--module=C:\Users\SOBER CHECK\Downloads\gekko-develop\gekko-develop\node_modules\sqlite3\lib\binding\node-v48-win32-x64\node_sqlite3.node" --module_name=node_sqlite3 "--module_path=C:\Users\SOBER CHECK\Downloads\gekko-develop\gekko-develop\node_modules\sqlite3\lib\binding\node-v48-win32-x64" )
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 failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:449:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:404:11
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "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" "--module=C:\\Users\\SOBER CHECK\\Downloads\\gekko-develop\\gekko-develop\\node_modules\\sqlite3\\lib\\binding\\node-v48-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\SOBER CHECK\\Downloads\\gekko-develop\\gekko-develop\\node_modules\\sqlite3\\lib\\binding\\node-v48-win32-x64"
gyp ERR! cwd C:\Users\SOBER CHECK\Downloads\gekko-develop\gekko-develop\node_modules\sqlite3
gyp ERR! node -v v6.9.4
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\Users\SOBER CHECK\Downloads\gekko-develop\gekko-develop\node_modules\sqlite3\lib\binding\node-v48-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\SOBER CHECK\Downloads\gekko-develop\gekko-develop\node_modules\sqlite3\lib\binding\node-v48-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\SOBER CHECK\Downloads\gekko-develop\gekko-develop\node_modules\sqlite3\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\SOBER CHECK\\Downloads\\gekko-develop\\gekko-develop\\node_modules\\sqlite3\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\SOBER CHECK\Downloads\gekko-develop\gekko-develop\node_modules\sqlite3
node-pre-gyp ERR! node -v v6.9.4
node-pre-gyp ERR! node-pre-gyp -v v0.6.38
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\Users\SOBER CHECK\Downloads\gekko-develop\gekko-develop\node_modules\sqlite3\lib\binding\node-v48-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\SOBER CHECK\Downloads\gekko-develop\gekko-develop\node_modules\sqlite3\lib\binding\node-v48-win32-x64' (1)
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "sqlite3"
npm ERR! node v6.9.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! sqlite3#3.1.13 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3#3.1.13 install script 'node-pre-gyp install --fallback-to-build'.
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 sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs sqlite3
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\SOBER CHECK\Downloads\gekko-develop\gekko-develop\npm-debug.log
I'm on Windows 10 with Node version 6.9.4 and NPM version 3.10.10.
Please help - what can I do to resolve this and finish installing Gekko?
I've also posted this question as an issue on the Github repo, but I don't have much hope of a reply from there.
Any help to make this example more minimal (as in minimum verifiable example) or about any extra information required would be much appreciated; I don't know enough about this to ask an easily-answerable question.
installing sqlite 4.0.1 instead of 3.1.13 fixed it for me
Your linked GitHub issue was resolved with the solution of updating to sqlite3#^4.0.1. However, the commenters on your issue are using later versions of Node v9 or later Node v10 so this sqlite3 version upgrade may not fix your issue. Gekko updated to sqlite3 v4.0.2 in Gekko v0.6.3 so upgrade to that version or above, reinstall and then you'll be using the latest version of sqlite3 at the time of writing which contains the resolution for your issue.
All that said, looking at your error message, it appears that you don't have python available on your PATH:
Error: Can't find Python executable "python", you can set the PYTHON env variable.
So try both approaches - upgrade Gekko and ensure Python is installed and available within your environment.

Firebase Module Installation Failled

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

Can not add accounts-password, how to fix this?

I am trying to add accounts-password package to my project, but I get this error instead, I have no clue what causes it or how to fix it. I tried to run
meteor npm install node-gyp rebuild as mentioned in the error but it does not help...
...seed>meteor add accounts-password
=> Errors while adding packages:
While loading package npm-bcrypt#0.8.7:
error: Command failed:
C:\Users\...\AppData\Local\.meteor\packages\meteor-tool\1.4.0-1\mt-os.windows.x86_
32\dev_bundle\bin\npm.cmd
rebuild --no-bin-links --update-binary
gyp ERR! build error
gyp ERR! stack Error:
`C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit
code: 1
gyp ERR! stack at ChildProcess.onExit
(C:\Users\...\AppData\Local\.meteor\packages\meteor-tool\1.4.0-1\mt-os.windows.x86
_32\dev_bundle\lib\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit
(internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command
"C:\\Users\\...\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0-1\\mt-os.wi
ndows.x86_32\\dev_bundle\\bin\\node.exe"
"C:\\Users\\...\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0-1\\mt-os.wi
ndows.x86_32\\dev_bundle\\lib\\node_modules\\node-gyp\\bin\\node-gyp.js"
"rebuild"
gyp ERR! cwd
C:\Users\...\AppData\Local\.meteor\packages\npm-bcrypt\0.8.7\npm\node_modules\.tem
p-pilafw\node_modules\bcrypt
gyp ERR! node -v v4.4.7
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv
"C:\\Users\\...\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0-1\\mt-os.wi
ndows.x86_32\\dev_bundle\\bin\\node.exe"
"C:\\Users\\...\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0-1\\mt-os.wi
ndows.x86_32\\dev_bundle\\lib\\node_modules\\npm\\bin\\npm-cli.js"
"rebuild" "--no-bin-links" "--update-binary"
npm ERR! node v4.4.7
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! bcrypt#0.8.7 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt#0.8.7 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 bcrypt 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 bcrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!
C:\Users\...\AppData\Local\.meteor\packages\npm-bcrypt\0.8.7\npm\node_modules\.tem
p-pilafw\npm-debug.log
gyp ERR! build error
gyp ERR! stack Error:
`C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit
code: 1
gyp ERR! stack at ChildProcess.onExit
(C:\Users\...\AppData\Local\.meteor\packages\meteor-tool\1.4.0-1\mt-os.windows.x86
_32\dev_bundle\lib\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit
(internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command
"C:\\Users\\...\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0-1\\mt-os.wi
ndows.x86_32\\dev_bundle\\bin\\node.exe"
"C:\\Users\\...\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0-1\\mt-os.wi
ndows.x86_32\\dev_bundle\\lib\\node_modules\\node-gyp\\bin\\node-gyp.js"
"rebuild"
gyp ERR! cwd
C:\Users\...\AppData\Local\.meteor\packages\npm-bcrypt\0.8.7\npm\node_modules\.tem
p-pilafw\node_modules\bcrypt
gyp ERR! node -v v4.4.7
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv
"C:\\Users\\...\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0-1\\mt-os.wi
ndows.x86_32\\dev_bundle\\bin\\node.exe"
"C:\\Users\\...\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.4.0-1\\mt-os.wi
ndows.x86_32\\dev_bundle\\lib\\node_modules\\npm\\bin\\npm-cli.js"
"rebuild" "--no-bin-links" "--update-binary"
npm ERR! node v4.4.7
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! bcrypt#0.8.7 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt#0.8.7 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 bcrypt 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 bcrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!
C:\Users\...\AppData\Local\.meteor\packages\npm-bcrypt\0.8.7\npm\node_modules\.tem
p-pilafw\npm-debug.log
Im am using Windows7-x64. meteor 1.4.0.1 and the inspina meteor theme.
I reinstalled meteor, I tried to create a new virgin project and add accounts-password to it, but I get the same issue...
Tried to install meteor on my Laptop, and getting the same issue... is there something wrong with meteor itself?
I think your issue is mentioned here.
Try to run npm install --global --production windows-build-tools from Powershell as mentioned here
If some one who tired of trying 'npm install --global --production windows-build-tools', they can skip it after the Python installation and continue buid tools manually, by browsing to C:\Users\#user#\.windows-build-tools'. Refer this link

Resources