저는 명령 행에서 작업하는 것이 매우 쉽습니다. 나는 꿀꺽 꿀꺽 마시는 것으로 설정하고있는 프로젝트가 있고, 꿀꺽 꿀꺽 마시는 설치되어 있고 성공적으로 sass 파일을 컴파일하고있다. 그러나 캔버스를 설치할 수 없습니다 :캔버스를 설치하려고 할 때 cario install 명령으로 문제가 발생하지 않습니다.
$ npm install canvas
종속성으로 인해 캔버스를 설치해야합니다. css-sprite를 실행해야합니다. 다음과 같은 오류가 발생합니다. 카이로, 석영, 자작을 설치했습니다. 다른 티켓을 조사한 후 export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig
을 실행하고 다시 설치하려고했습니다. 나는 행운이 없었고 문제를 해결하려는 시도에서 무엇을해야할지 전혀 모릅니다. 여기
npm http GET https://registry.npmjs.org/canvas
npm http 304 https://registry.npmjs.org/canvas
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan
[email protected] install /usr/local/lib/node_modules/canvas
node-gyp rebuild
./util/has_cairo_freetype.sh: line 4: pkg-config: command not found
gyp: Call to './util/has_cairo_freetype.sh' returned exit status 0.
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
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 Darwin 13.1.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/canvas
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install 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-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! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "canvas"
npm ERR! cwd /Users/kylebebeau/websites/ls/code/templates/ls3
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/kylebebeau/websites/ls/code/templates/ls3/npm-debug.log
npm ERR! not ok code 0
어떤 도움이나지도가 크게 감상 할 수 ... 오류입니다.