Холст как зависимость - проблема перестроения npm узла-gypфатальная ошибка - PullRequest
0 голосов
/ 30 января 2019

Возникают проблемы при запуске npm install, когда какие-либо пакеты имеют зависимость от canvas.Нигде не нашли правильного решения.

Много раз даже запуск npm install для нового проекта вызывает это, когда присутствует canvas.Иногда, но редко он проходит и правильно устанавливается

mikejernil@mikejernil-X550LD:~/p105test$ npm i node-three-screenshot

> canvas@1.6.13 install /home/mikejernil/p105test/node_modules/node-three-screenshot/node_modules/canvas
> node-gyp rebuild

make: Entering directory '/home/mikejernil/p105test/node_modules/node-three-screenshot/node_modules/canvas/build'
  SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node
  COPY Release/canvas-postbuild.node
  CXX(target) Release/obj.target/canvas/src/Canvas.o
In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h:9:0,
                 from /home/mikejernil/.node-gyp/11.8.0/include/node/v8.h:19,
                 from ../src/Canvas.h:11,
                 from ../src/Canvas.cc:7:
/usr/include/stdint.h:34:10: fatal error: bits/stdint-intn.h: No such file or directory
 #include <bits/stdint-intn.h>
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
canvas.target.mk:133: recipe for target 'Release/obj.target/canvas/src/Canvas.o' failed
make: *** [Release/obj.target/canvas/src/Canvas.o] Error 1
make: Leaving directory '/home/mikejernil/p105test/node_modules/node-three-screenshot/node_modules/canvas/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:197:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Linux 4.15.0-44-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/mikejernil/p105test/node_modules/node-three-screenshot/node_modules/canvas
gyp ERR! node -v v11.8.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/home/mikejernil/p105test/package.json'
npm WARN p105test No description
npm WARN p105test No repository field.
npm WARN p105test No README data
npm WARN p105test No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! canvas@1.6.13 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the canvas@1.6.13 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/mikejernil/.npm/_logs/2019-01-30T06_54_38_814Z-debug.log

проблема холста узла

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...