Open DonKarlssonSan opened 6 years ago
(Sorta off-topic: Is it easy for you to see the output of process.arch
and require("os").arch()
with a 64-bit function? Curious if that's a bug in Azure's deployment or in node-pre-gyp's detection.)
Aha! Conflicting info. Azure Functions seems to be the one to blame for reporting x86 to node-pre-gyp
D:\home>node test.js
ia32 ia32
D:\home>node --version
v6.5.0
D:\home>cat test.js
console.log(process.arch, require("os").arch());
System up time: 1.21:10:02 OS version: Microsoft Windows NT 6.2.9200.0 64 bit system: True 64 bit process: True
REMOTEDEBUGGINGBITVERSION = vx64 REMOTEDEBUGGINGPORT = REMOTEDEBUGGINGVERSION = 11.0.611103.400 SCM_SKIP_SSL_VALIDATION = 0 SCM_USE_FUNCPACK = 0 ScmType = GitHub SITE_BITNESS = AMD64
If it's an option for you, you can pass --target_arch=x64
to npm install
and that should override node-pre-gyp's choice. I probably won't get around to adding 32 bit support seeing as I still haven't done ARM and that has been a popular request 😕
Thanks! I will try that.
$ node -p "process.arch"
> ia32
--target_arch=x64
can't help too, because Node.js process arch is ia32
(i.e. they install x32 Node.js version on a x64 machine)So, as for now, no way to install and use node-canvas
on Azure Function App
Hi,
I'm trying to use canvas-prebuilt on Azure Functions but there is an error during installation:
It's looking for canvas-prebuilt-v1.6.5-prerelease.1-node-v48-win32-ia32.tar.gz but that does not exist so it fails. I saw this comment in the readme:
So I'm wondering if it is possible to add Windows x86/ia32 builds as well? (node-v48-win32-ia32)
The node version in Azure Functions is currently locked at 6.5.0.
I've tried switching my Azure Function to 64 bit but that made no difference. Somehow the npm scripts detects the platform arch as 32.![image](https://user-images.githubusercontent.com/3482016/33404367-53b68c5a-d564-11e7-8081-edd5f78fb984.png)