Comments (6)
Nevermind, found the canvas install instructions at https://github.com/Automattic/node-canvas/wiki/Installation---Ubuntu-and-other-Debian-based-systems
If this is a requirement for this module to work, It would be nice that this information is stated in the README at the install section, since one normally assumes that npm install
(per readme) is the only thing only one needs to do.
BTW Have you considered removing all this specific OS dependencies?
Thanks
from qrious.
Beat me to it 😄
from qrious.
I am considering investing some more time into this project again as I have a few ideas for it which will include attempting to remove node binding, improve image scaling, and making the code more modular and easier to manage and maintain. I will probably attempt to leverage browserify for some of these.
from qrious.
Good to know! This is the qr generation module at npm that I wanted to install due its feature set (fg and bg colors, scaling, etc) but I reconsidered after the dependency issue, since I need that the install flows smoothly and have to do it on several machines with different OSes.
from qrious.
C:\MyApp>npm install qr-js
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
[email protected] install C:\MyApp\node_modules\qr-js\node_modules\canvas
node-gyp rebuild
C:\MyApp\node_modules\qr-js\node_modules\canvas>node "C:\Program Files\nodejs\n
ode_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" r
ebuild
gyp ERR! configure error
gyp ERR! stack Error: spawn /usr/bin/python2 ENOENT
gyp ERR! stack at exports._errnoException (util.js:746:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1046
:32)
gyp ERR! stack at child_process.js:1137:20
gyp ERR! stack at process._tickCallback (node.js:355:11)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\MyApp\node_modules\qr-js\node_modules\canvas
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs
\node_modules\npm\bin\npm-cli.js" "install" "qr-js"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! 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-gyp rebuild
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! Please include the following file with any support request:
npm ERR! C:\MyApp\npm-debug.log
from qrious.
@uikro Please see the following instructions on installing node-canvas on Windows:
https://github.com/Automattic/node-canvas/wiki/Installation---Windows
from qrious.
Related Issues (20)
- SVG generation HOT 4
- 生成二维码的字符串很长 HOT 2
- Demo broken HOT 4
- Unicode characters not working HOT 3
- 二维码能展示,但是用微信等扫描图片就扫描不出来 HOT 1
- Custom pattern QR Generator scanner and reader like facebook messenger?
- Qrious do not work when canvas read is disabled for privacy reasons HOT 2
- Is this project dead? HOT 1
- password protected qr code HOT 4
- padding not null toDataUrl Picture not centered HOT 3
- Get access to underlying modules? HOT 2
- How can I append QR code to already existing canvas element?
- Question about the LEVEL value HOT 2
- TypeError: Cannot set property 'QRious' of undefined HOT 3
- QR Code Structure HOT 1
- QRious not found since upgrade Chrome to latest version HOT 4
- The QR Generation is not working I dont know why. Heres the error Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'returnValues') at addproduct.php:152:124 at async addproduct.php:150:25
- compatibility with C sharp in VB 6
- License confusion
- What QR code format is used in the library?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qrious.