This repository was archived by the owner on Mar 21, 2022. It is now read-only.
Description I tried to install mdgen using
sudo npm install -g mdgen
and got the following error
/usr/local/bin/mdgen -> /usr/local/lib/node_modules/mdgen/bin/mdgen.js
/usr/local/bin/mdgen-image -> /usr/local/lib/node_modules/mdgen/bin/mdgen-image.js
/usr/local/bin/mdgen-render -> /usr/local/lib/node_modules/mdgen/bin/mdgen-render.js
/usr/local/bin/mdgen-pdf -> /usr/local/lib/node_modules/mdgen/bin/mdgen-pdf.js
/usr/local/bin/mdgen-html -> /usr/local/lib/node_modules/mdgen/bin/mdgen-html.js
> canvas@1.3.12 install /usr/local/lib/node_modules/mdgen/node_modules/canvas
> node-gyp rebuild
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/mdgen/node_modules/canvas/build'
gyp ERR! System Darwin 17.0.0
gyp ERR! command "/usr/local/Cellar/node/8.7.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/mdgen/node_modules/canvas
gyp ERR! node -v v8.7.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! canvas@1.3.12 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the canvas@1.3.12 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! /Users/yaojian/.npm/_logs/2017-10-20T09_51_49_587Z-debug.log
The permission of /usr/local/lib/node_modules is:
drwxr-xr-x 4 yaojian admin 128 Oct 20 17:51 node_modules
any help ?
Reactions are currently unavailable
I tried to install mdgen using
and got the following error
The permission of
/usr/local/lib/node_modulesis:any help ?