1:: Warning: Permanently added 'heroku.com,50.19.85.156' (RSA) to the list of known hosts.
-----> Heroku receiving push
-----> Node.js app detected
-----> Resolving engine versions
Using Node.js version: 0.6.8
Using npm version: 1.1.41
-----> Fetching Node.js binaries
-----> Vendoring node into slug
-----> Installing dependencies with npm
npm WARN package.json cssom#0.2.3 No README.md file found!
npm WARN package.json connect#1.8.5 No README.md file found!
> contextify#0.1.1 install /tmp/build_bofw5mh3ha0z/node_modules/jsdom/node_modules/contextify
> node-gyp rebuild
gyp http GET http://nodejs.org/dist/v0.6.8/node-v0.6.8.tar.gz
gyp http 200 http://nodejs.org/dist/v0.6.8/node-v0.6.8.tar.gz
gyp ERR! UNCAUGHT EXCEPTION Error: UNKNOWN, unknown error '/tmp/build_bofw5mh3ha0z/.node-gyp/0.6.8'
gyp ERR! This is a bug in `node-gyp`, please file an Issue:
gyp ERR! https://github.com/TooTallNate/node-gyp/issues
gyp ERR! not ok
npm ERR! contextify#0.1.1 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 7
npm ERR!
npm ERR! Failed at the contextify#0.1.1 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 2.6.32-343-ec2
npm ERR! command "/tmp/node-node-aT6q/bin/node" "/tmp/node-npm-o7eN/cli.js" "rebuild"
npm ERR! cwd /tmp/build_bofw5mh3ha0z
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.41
npm ERR! code ELIFECYCLE
npm ERR! stack Error: contextify#0.1.1 install: `node-gyp rebuild`
npm ERR! stack `sh "-c" "node-gyp rebuild"` failed with 7
npm ERR! stack at ChildProcess.
Related
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.
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
I get the following error
-----> Installing dependencies with npm
> bignum#0.5.1 install /tmp/build_1xz3suiyqvjwh/node_modules/bignum
> node-gyp configure build
sh: node-gyp: not found
npm ERR! error installing bignum#0.5.1 Error: bignum#0.5.1 install: `node-gyp configure build`
npm ERR! error installing bignum#0.5.1 `sh "-c" "node-gyp configure build"` failed with 127
npm ERR! error installing bignum#0.5.1 at ChildProcess.<anonymous> (/tmp/node-npm-Pi2L/lib/utils/exec.js:49:20)
npm ERR! error installing bignum#0.5.1 at ChildProcess.emit (events.js:70:17)
npm ERR! error installing bignum#0.5.1 at maybeExit (child_process.js:358:16)
npm ERR! error installing bignum#0.5.1 at Process.onexit (child_process.js:394:5)
npm ERR! bignum#0.5.1 install: `node-gyp configure build`
npm ERR! `sh "-c" "node-gyp configure build"` failed with 127
npm ERR!
npm ERR! Failed at the bignum#0.5.1 install script.
npm ERR! This is most likely a problem with the bignum 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 bignum
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 2.6.32-343-ec2
npm ERR! command "/tmp/node-node-8eWj/bin/node" "/tmp/node-npm-Pi2L/cli.js" "install" "--production"
npm ERR! cwd /tmp/build_1xz3suiyqvjwh
npm ERR! node -v v0.6.20
npm ERR! npm -v 1.0.106
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/build_1xz3suiyqvjwh/npm-debug.log
npm not ok
! Failed to install --production dependencies with npm
! Heroku push rejected, failed to compile Node.js app
I got problem to install this package on heroku.
Is there a way to do it ?
I saw it's a problem with canvas module, but i don't know what to do.
This is a log of installation on heroku. I don't know how to get more :
npm ERR! canvas#0.12.1 preinstall: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the canvas#0.12.1 preinstall script.
npm ERR! 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-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls canvas
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.32-343-ec2
npm ERR! command "/tmp/node-node-La1F/bin/node" "/tmp/node-npm-6Xts/cli.js" "install" "--production"
npm ERR! cwd /tmp/build_3ejt8evom1p0g
npm ERR! node -v v0.6.18
npm ERR! npm -v 1.1.41
npm ERR! code ELIFECYCLE
npm ERR! stack Error: canvas#0.12.1 preinstall: `node-waf configure build`
npm ERR! stack `sh "-c" "node-waf configure build"` failed with 1
npm ERR! stack at ChildProcess.<anonymous> (/tmp/node-npm-6Xts/lib/utils/exec.js:56:20)
npm ERR! stack at ChildProcess.emit (events.js:70:17)
npm ERR! stack at maybeExit (child_process.js:362:16)
npm ERR! stack at Process.onexit (child_process.js:398:5)
I successfully used this Heroku builpack:
https://elements.heroku.com/buildpacks/mojodna/heroku-buildpack-cairo
But in its README, it tells you to use heroku-buildpack-multi, that's deprecated. What I did was, using Heroku Toolbelt in command line:
heroku buildpacks:set --index 1 https://github.com/mojodna/heroku-buildpack-cairo.git
heroku buildpacks:add heroku/nodejs
And then push to Heroku so it can build packages again.