2016-08-23 2 views
1

나는 푸른 웹 앱 (무료 계층) 및 해당 종속성 중 하나에 Node.js를 프로젝트를 배포하려고에 nodejs 날카로운 설치는 날카로운 : https://github.com/lovell/sharp푸른 32 비트

배포 과정을 통해가는 내가 얻을 :

나는 온라인 푸른 콘솔 curl -s https://raw.githubusercontent.com/lovell/sharp/master/preinstall.sh | sudo bash -의 급격한 문서에 나와있는 명령을 실행하려고했습니다
ERROR: Intel Architecture 32-bit systems require manual installation - please see http://sharp.dimens.io/en/stable/install/ 
gyp: Call to 'node -e "require('./binding').download_vips()"' returned exit status 1 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 (D:\Program Files (x86)\npm\3.10.3\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:204:12) 

는 (나는 푸른 그렇게하지 않았기 때문에 비록 시도하기 전에 sudo을 제거). 하지만 오류가 있습니다.

/usr/bin/bash: line 91: type: pkg-config: not found 
(23) Failed writing body 

아무 것도 작동하지 않는 것 같습니다. 불행히도 자유 계층 사용자가 32 비트 환경으로 제한되어있는 것처럼 보이기 때문에 환경을 x64로 전환 할 수 없습니다. 어떤 식 으로든이 일을 할 수 있을까요?

감사합니다!

답변

2

While most modules are simply plain-text JavaScript files, some modules are platform-specific binary images. These modules are compiled at install time, usually by using Python and node-gyp Azure App Service does not support all native modules and might fail at compiling those with very specific prerequisites.

설명은 https://azure.microsoft.com/en-us/documentation/articles/nodejs-use-node-modules-azure-apps/입니다.

로컬 환경에서 windows 32 플랫폼에 샤프를 설치하고 컴파일 된 모듈이 들어있는 node_modules 폴더를 사용하여 응용 프로그램을 Azure에 배포 할 수 있습니다.

32 비트 Windows 환경에서 sharp 모듈을 설치하려면 https://github.com/lovell/sharp/issues/379을 참조하십시오.

+0

Windows의 32 비트 설치가 필요하지 않습니까? 64 비트 설치에만 액세스 할 수 있으며 VM을 설정하기 위해 번거로운 과정을 겪고 싶지 않습니다. – abagshaw

+0

https://github.com/lovell/sharp/issues/226에 따르면, 명령'npm install --arch = ia32'에 변수를 추가하여 32 비트로 강제 설정할 수 있습니다 –