I am trying to install and test an app that uses NodeJS.
The instruction simply say to run these commands...
git clone https://github.com/sdelements/lets-chat.git
cd lets-chat
npm install
npm start
When I run npn install things go really bad and I see like 100 error messages in my console!
npm WARN engine mongoose-validate#0.0.5: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.29","npm":"1.4.14"})
|
> node-stringprep#0.7.0 install E:\Server\htdocs\projects\lets-chat\lets-chat\node_modules\node-xmpp-core\node_modules\node-stringprep
> node-gyp rebuild
E:\Server\htdocs\projects\lets-chat\lets-chat\node_modules\node-xmpp-core\node_modules\node-stringprep>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe".
To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visua
l Studio 2005 or 3) add the location of the component to the system path if it
is installed elsewhere. [E:\Server\htdocs\projects\lets-chat\lets-chat\node_mo
dules\node-xmpp-core\node_modules\node-stringprep\build\binding.sln]
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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd E:\Server\htdocs\projects\lets-chat\lets-chat\node_modules\node-xmpp-core\node_modules\node-stringprep
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
npm ERR! node-stringprep#0.7.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-stringprep#0.7.0 install script.
npm ERR! This is most likely a problem with the node-stringprep 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 their info via:
npm ERR! npm owner ls node-stringprep
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd E:\Server\htdocs\projects\lets-chat\lets-chat
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm WARN optional dep failed, continuing fsevents#0.3.5
npm ERR! fetch failed https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-0.1.8.tgz
npm ERR! fetch failed https://registry.npmjs.org/hike/-/hike-1.0.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/onecolor/-/onecolor-2.5.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/postcss/-/postcss-4.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/fs-tools/-/fs-tools-0.2.11.tgz
npm ERR! fetch failed https://registry.npmjs.org/fs-extra/-/fs-extra-0.14.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/mimoza/-/mimoza-0.3.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/nan/-/nan-1.6.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/configstore/-/configstore-0.3.2.tgz
npm ERR! Error: ENOENT, lstat 'E:\Server\htdocs\projects\lets-chat\lets-chat\node_modules\grunt-bower\node_modules\bower\node_modules\tar\node_modules\block-stream\bench\dropper.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd E:\Server\htdocs\projects\lets-chat\lets-chat
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path E:\Server\htdocs\projects\lets-chat\lets-chat\node_modules\grunt-bower\node_modules\bower\node_modules\tar\node_modules\block-stream\bench\dropper.js
npm ERR! fstream_path E:\Server\htdocs\projects\lets-chat\lets-chat\node_modules\grunt-bower\node_modules\bower\node_modules\tar\node_modules\block-stream\bench\dropper.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! fetch failed https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-1.2.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/benchmark/-/benchmark-1.0.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/iconv/-/iconv-2.1.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/hoek/-/hoek-2.11.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-0.1.8.tgz
npm ERR! fetch failed https://registry.npmjs.org/hike/-/hike-1.0.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/onecolor/-/onecolor-2.5.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/postcss/-/postcss-4.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/fs-tools/-/fs-tools-0.2.11.tgz
npm ERR! fetch failed https://registry.npmjs.org/fs-extra/-/fs-extra-0.14.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/mimoza/-/mimoza-0.3.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/nan/-/nan-1.6.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/configstore/-/configstore-0.3.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-1.2.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/benchmark/-/benchmark-1.0.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/iconv/-/iconv-2.1.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/hoek/-/hoek-2.11.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/hike/-/hike-1.0.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/onecolor/-/onecolor-2.5.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/postcss/-/postcss-4.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/fs-tools/-/fs-tools-0.2.11.tgz
npm ERR! fetch failed https://registry.npmjs.org/nan/-/nan-1.6.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/fs-extra/-/fs-extra-0.14.0.tgz
npm WARN optional dep failed, continuing utf-8-validate#1.0.1
npm WARN optional dep failed, continuing bufferutil#1.0.1
npm WARN optional dep failed, continuing kerberos#0.0.9
npm WARN optional dep failed, continuing kerberos#0.0.9
npm ERR! fetch failed https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-0.1.8.tgz
npm ERR! fetch failed https://registry.npmjs.org/mimoza/-/mimoza-0.3.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-1.2.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/benchmark/-/benchmark-1.0.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/iconv/-/iconv-2.1.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/hoek/-/hoek-2.11.1.tgz
npm WARN optional dep failed, continuing request#2.53.0
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! E:\Server\htdocs\projects\lets-chat\lets-chat\npm-debug.log
npm ERR! not ok code 0
I see the first part of the error messages is this complaining about a Windows component missing. I should have that but I will fix that....
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe".
To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere.
However the bulk of the errors are related to NODE
How can I fix these?
If you install VS that should do it.
I should also add that you might have issues getting this thing to run in Windows. Maybe consider using docker or one of the other deployment options.
Source: I'm one of the authors of Let's Chat.
Related
When I run npm install on my project, I get
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: .....#10.1.3
npm ERR! Found: #angular/forms#11.2.14
npm ERR! node_modules/#angular/forms
npm ERR! #angular/forms#"^11.2.14" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer #angular/forms#"^12.0.0" from ngx-typesafe-forms#1.5.1
npm ERR! node_modules/ngx-typesafe-forms
npm ERR! ngx-typesafe-forms#"^1.4.3" 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 /Users/..../.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/.../.npm/_logs/2021-09-02T10_06_13_858Z-debug.log
then I tried I have tried running npm install --legacy-peer-deps and got
npm ERR! 1 error generated.
npm ERR! make: *** [Release/obj.target/binding/src/binding.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/Users/......./node_modules/node-gyp/lib/build.js:262:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:394:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Darwin 20.6.0
npm ERR! gyp ERR! command "/opt/homebrew/Cellar/node/16.4.2/bin/node" "/Users/...../node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd /Users/......../node_modules/node-sass
npm ERR! gyp ERR! node -v v16.4.2
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1
i have tried deleting my node_modules folder and running it again.
npm -v = 7.21.1
I got same issue, my angular project version was 9 and the node version was 16 and npm version was 8.
just downgrade your node version and then run npm install it worked for me.
use the same node version that the package-lock.json file was created for the first time.
hope this is helpful
Today I tried to download the package quick.db. npm failed and sent the following error:
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Windows_NT 10.0.18363
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" "--release"
gyp ERR! cwd C:\Users\אריאל שמילוביץ\Documents\GitHub\HighProBot-2.0\node_modules\integer
gyp ERR! node -v v14.8.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! integer#3.0.1 build-release: `node-gyp rebuild --release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the integer#3.0.1 build-release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\אריאל שמילוביץ\AppData\Roaming\npm-cache\_logs\2020-08-31T20_05_46_973Z-debug.log
npm WARN botjs#1.0.0 No description
npm WARN botjs#1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! integer#3.0.1 install: `prebuild-install || npm run build-release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the integer#3.0.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I read online a bit about the problem and realized that the command should be run:
npm i --global windows-build-tools --vs2015
It did not work. npm send the same error.
After reading the error I realized that the command should be run:
npm run build-release
But when I ran the command, npm sent another problem:
npm ERR! missing script: build-release
After the script was missing, I downloaded the build-release package with the command:
npm i build-release
But that did not solve the problem
If anyone knows what the problem is, please help me.
Try running npm rebuild, it should fix an issue with incorrectly downloaded packages
I'm attempting to use Node to install an angular package for yeoman. Here's the command I run
"npm install -g generator-angular"
Everything seems to work until I get this error
node-gyp rebuild
gyp ERR! configure error
gyp ERR! stack Error: "pre" versions of node cannot be installed, use the --nodedir flag instead
gyp ERR! stack at install (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:65:16)
gyp ERR! stack at Object.self.commands.(anonymous function) [as install] (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js:66:37)
gyp ERR! stack at getNodeDir (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:150:20)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:93:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:659:7)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:101:17)
gyp ERR! stack at maybeClose (child_process.js:773:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:840:5)
gyp ERR! System Linux 3.8.0-37-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v0.11.10-pre
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
Further down, it returns this error.
npm ERR! Error: ENOENT, lstat '/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/cssstyle/lib/properties/webkitFlexFlow.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Linux 3.8.0-37-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "generator" "angular"
npm ERR! cwd /home/colin
npm ERR! node -v v0.11.10-pre
npm ERR! npm -v 1.3.15
npm ERR! path /home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/cssstyle/lib/properties/webkitFlexFlow.js
npm ERR! fstream_path /home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/cssstyle/lib/properties/webkitFlexFlow.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:97:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules/hawk/test'
npm ERR! error rolling back jsdom#0.8.11 { [Error: ENOTEMPTY, rmdir '/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules/hawk/test']
npm ERR! error rolling back stack: 'Error: ENOTEMPTY, rmdir \'/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules/hawk/test\'',
npm ERR! error rolling back errno: -39,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules/hawk/test' }
npm ERR! Error: ENOENT, open '/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.fail.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Linux 3.8.0-37-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "generator" "angular"
npm ERR! cwd /home/colin
npm ERR! node -v v0.11.10-pre
npm ERR! npm -v 1.3.15
npm ERR! path /home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.fail.js
npm ERR! code ENOENT
npm ERR! errno -2
npm WARN optional dep failed, continuing hawk#1.0.0
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules'
npm ERR! error rolling back angular#1.2.16 { [Error: ENOTEMPTY, rmdir '/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules']
npm ERR! error rolling back stack: 'Error: ENOTEMPTY, rmdir \'/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules\'',
npm ERR! error rolling back errno: -39,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/home/colin/npm/lib/node_modules/angular/node_modules/jsdom/node_modules/request/node_modules' }
npm ERR! contextify#0.1.8 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify#0.1.8 install script.
npm ERR! This is most likely a problem with the contextify 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 their info via:
npm ERR! npm owner ls contextify
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.8.0-37-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "generator" "angular"
npm ERR! cwd /home/colin
npm ERR! node -v v0.11.10-pre
npm ERR! npm -v 1.3.15
npm ERR! code ELIFECYCLE
npm http 304 https://registry.npmjs.org/punycode
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/colin/npm-debug.log
npm ERR! not ok code 0
I tried "npm install contextify", and I was met with this:
npm http GET https://registry.npmjs.org/angularnpm
npm http GET https://registry.npmjs.org/install
npm http GET https://registry.npmjs.org/generator
npm http GET https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/contextify
npm http 304 https://registry.npmjs.org/generator
npm http 404 https://registry.npmjs.org/angularnpm
npm ERR! 404 'angularnpm' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Linux 3.8.0-37-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "generator" "angularnpm" "install" "contextify"
npm ERR! cwd /home/colin
npm ERR! node -v v0.11.10-pre
npm ERR! npm -v 1.3.15
npm ERR! code E404
npm http 200 https://registry.npmjs.org/install
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/colin/npm-debug.log
npm ERR! not ok code 0
I changed the permissions of my local directory with
"sudo chown -R whoami /usr/local/"
I'm thinking this is a permissions or PATH error, but I have no idea what I'm dealing with here.
Could this be because of a Yeoman issue?
It's not
npm install -g generator angular
it's
npm install -g generator-angular
with the dash between generator and angular.
When I try to install now package it is giving me following error:
npm install now
npm WARN package.json Paint_HTML5_multi#0.3.0 No repository field.
npm WARN package.json Paint_HTML5_multi#0.3.0 No README data
npm http GET https://registry.npmjs.org/now
npm http 304 https://registry.npmjs.org/now
npm http GET https://registry.npmjs.org/node-proxy
npm http 304 https://registry.npmjs.org/node-proxy
npm WARN engine node-proxy#0.8.0: wanted: {"node":">=0.11.x","npm":">= 1.1.17"} (current: {"node":"v0.10.25","npm":"1.3.24"})
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/bindings
> node-proxy#0.8.0 install /home/ritzy1/Downloads/downloaded codes/drawing app/Paint_HTML5_Multi_Tutorial/Step7/node_modules/now/node_modules/node-proxy
> node-gyp configure build
make: Entering directory `/home/ritzy1/Downloads/downloaded codes/drawing app/Paint_HTML5_Multi_Tutorial/Step7/node_modules/now/node_modules/node-proxy/build'
CXX(target) Release/obj.target/nodeproxy/src/node-proxy.o
make: g++: Command not found
make: *** [Release/obj.target/nodeproxy/src/node-proxy.o] Error 127
make: Leaving directory `/home/ritzy1/Downloads/downloaded codes/drawing app/Paint_HTML5_Multi_Tutorial/Step7/node_modules/now/node_modules/node-proxy/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.8.0-35-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /home/ritzy1/Downloads/downloaded codes/drawing app/Paint_HTML5_Multi_Tutorial/Step7/node_modules/now/node_modules/node-proxy
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! node-proxy#0.8.0 install: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-proxy#0.8.0 install script.
npm ERR! This is most likely a problem with the node-proxy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls node-proxy
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.8.0-35-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "now"
npm ERR! cwd /home/ritzy1/Downloads/downloaded codes/drawing app/Paint_HTML5_Multi_Tutorial/Step7
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ritzy1/Downloads/downloaded codes/drawing app/Paint_HTML5_Multi_Tutorial/Step7/npm-debug.log
npm ERR! not ok code 0
I'm getting the above error; how can I fix it?
You need build tools installed on your system. Based on the directory paths, I can assume you're using linux. On ubuntu, for example, you can install build tools like so: sudo apt-get install -y build-essential, otherwise view this README to see what tools are required to be installed.
I'm trying to install node-sqlserver for my application in the node_modules directory by typing the following command,
npm install node-sqlserver
This is what I get,
npm WARN package.json application-name#0.0.1 No README.md file found!
npm WARN package.json node#0.0.0 No README.md file found!
npm http GET https://registry.npmjs.org/node-sqlserver
npm http 304 https://registry.npmjs.org/node-sqlserver
npm WARN deprecated node-sqlserver#0.1.0: This package has been superseded by msnodesql.
> node-sqlserver#0.1.0 install C:\Users\Tarun\Desktop\Songify\node_modules\node-sqlserver
> node-gyp rebuild
C:\Users\Tarun\Desktop\Songify\node_modules\node-sqlserver>node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node
-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! rebuild error Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! rebuild error at failNoPython (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\con
figure.js:85:14)
gyp ERR! rebuild error at Object.oncomplete (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\li
b\configure.js:59:11)
gyp ERR! not ok
npm ERR! node-sqlserver#0.1.0 install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the node-sqlserver#0.1.0 install script.
npm ERR! This is most likely a problem with the node-sqlserver 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 their info via:
npm ERR! npm owner ls node-sqlserver
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\
\npm-cli.js" "install" "node-sqlserver"
npm ERR! cwd C:\Users\Tarun\Desktop\Songify\node_modules
npm ERR! node -v v0.6.20
npm ERR! npm -v 1.1.37
npm ERR! code ELIFECYCLE
npm ERR! message node-sqlserver#0.1.0 install: `node-gyp rebuild`
npm ERR! message `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Tarun\Desktop\Songify\node_modules\npm-debug.log
npm ERR! not ok code undefined
npm ERR! not ok code 1
How do I resolve this issue? I'm using express as well
Your answer is in the output, you need to install python, following that you will get another error, you will need to install Microsoft SDK for Windows Server 2008 and dot net framework 3.5