Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hexo installation failed #2831

Closed
Pudge1996 opened this issue Nov 5, 2017 · 1 comment
Closed

hexo installation failed #2831

Pudge1996 opened this issue Nov 5, 2017 · 1 comment

Comments

@Pudge1996
Copy link

iMac:~ pudge$ git --version
git version 2.11.0 (Apple Git-81)
iMac:~ pudge$ node -v
v8.9.0
iMac:~ pudge$ npm -v
5.5.1
iMac:~ pudge$ sudo npm install -g hexo
Password:
npm WARN deprecated [email protected]: This package is no longer maintained
/usr/local/bin/hexo -> /usr/local/lib/node_modules/hexo/bin/hexo

[email protected] install /usr/local/lib/node_modules/hexo/node_modules/fsevents
node install

[fsevents] Success: "/usr/local/lib/node_modules/hexo/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

[email protected] postinstall /usr/local/lib/node_modules/hexo/node_modules/hexo-util
npm run build:highlight

[email protected] build:highlight /usr/local/lib/node_modules/hexo/node_modules/hexo-util
node scripts/build_highlight_alias.js > highlight_alias.json

sh: highlight_alias.json: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:highlight: node scripts/build_highlight_alias.js > highlight_alias.json
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:highlight script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

┌──────────────────────────────────────────────────────────┐
│ npm update check failed │
│ Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R $USER:$(id -gn $USER) /Users/pudge/.config │
└──────────────────────────────────────────────────────────┘
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: npm run build:highlight
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall 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/pudge/.npm/_logs/2017-11-05T03_02_45_986Z-debug.log
iMac:~ pudge$ sudo chown -R $USER:$(id -gn $USER) /Users/pudge/.config
Password:
iMac:~ pudge$

@JLHwung
Copy link
Collaborator

JLHwung commented Nov 5, 2017

You can try #2785 (comment) for a fix of permission issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants