Skip to content
This repository was archived by the owner on Mar 21, 2022. It is now read-only.
This repository was archived by the owner on Mar 21, 2022. It is now read-only.

Install mdgen fails on OSX high sierra #5

Description

@Yaojian

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions