-
-
Notifications
You must be signed in to change notification settings - Fork 76
Closed
Description
$ sudo npm i -g hexo-cli shark@dev
[sudo] password for shark:
/usr/bin/hexo -> /usr/lib/node_modules/hexo-cli/bin/hexo
> dtrace-provider@0.8.5 install /usr/lib/node_modules/hexo-cli/node_modules/dtrace-provider
> node scripts/install.js
> hexo-util@0.6.1 postinstall /usr/lib/node_modules/hexo-cli/node_modules/hexo-util
> npm run build:highlight
> hexo-util@0.6.1 build:highlight /usr/lib/node_modules/hexo-cli/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! hexo-util@0.6.1 build:highlight: `node scripts/build_highlight_alias.js > highlight_alias.json`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hexo-util@0.6.1 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) /root/.config │
└───────────────────────────────────────────────────┘
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules/hexo-cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hexo-util@0.6.1 postinstall: `npm run build:highlight`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hexo-util@0.6.1 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! /root/.npm/_logs/2017-08-29T17_15_30_204Z-debug.log
As you can see in the log file this is not npm fault or a permission error but hexo-cli post-install that fails. I tried on an updated manjaro (arch-based) and on a fresh installed Antergos (arch-based). I tried sudo npm install gulp-cli -g and it works.
/root/.npm/_logs/2017-08-29T17_15_30_204Z-debug.log: https://gist.github.com/noraj1337/66e214101b5cc0ea203eac30d4dd3f90
PS: I already installed successfully hexo-cli on this machine (manjaro) on the past and on various other arch-based systems.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels