Skip to content

New version of Highlight.js breaks npm installation #49

@danp3d

Description

@danp3d

Issue

Can't run npm install hexo-cli -g right now - seems to be caused by the new version of Highlight.js (released ~5 hours ago at the time of writing).
Works if you also install highlight.js at the same time, but using the previous version (9.14.2).

Error message

npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/danp3d/.nvm/versions/node/v10.12.0/lib/node_modules/hexo-cli/node_modules/highlight.js/tools/build.js'
npm ERR! enoent This is related to npm not being able to find a file.

How to reproduce

npm uninstall -g hexo-cli
npm install -g hexo-cli

Workaround

npm install -g highlight.js@9.14.2 hexo-cli

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions