hexo can't install on macbook

Created on 12 Nov 2016  ยท  18Comments  ยท  Source: hexojs/hexo

Environment Info

version

v3.10.9

system
osx EI 10.11.6

question

  1. i have trynpm install npm install -g hexo-cli;

the result

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
/usr/local/lib
โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚     โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚     โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚   โ”‚ โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚   โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚   โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚     โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚     โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚     โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚     โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚     โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚     โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚     โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚     โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚     โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚     โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚     โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚     โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚     โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚   โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚   โ”‚   โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚   โ”‚ โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚   โ”‚   โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚   โ”‚     โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚   โ”‚     โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚   โ”‚     โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
โ”‚ โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ”œโ”€โ”€ [email protected] 
โ”‚ โ””โ”€โ”ฌ [email protected] 
โ”‚   โ””โ”€โ”€ [email protected] 
โ”œโ”€โ”€ [email protected] 
โ””โ”€โ”€ [email protected] 

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "npm" "install" "-g" "hexo-cli"
npm ERR! node v7.1.0
npm ERR! npm  v3.10.9
npm ERR! path /usr/local/lib/node_modules/npm
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/npm'
npm ERR!  { Error: EACCES: permission denied, access '/usr/local/lib/node_modules/npm'
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules/npm' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/NBR-hugh/npm-debug.log
  1. then, sudo npm install -g hexo-cli

the result:

/usr/local/bin/hexo -> /usr/local/lib/node_modules/hexo-cli/bin/hexo

> [email protected] install /usr/local/lib/node_modules/hexo-cli/node_modules/dtrace-provider
> node scripts/install.js

it stop onnode scripts/install.js,and i want to know if it is success, so input$ hexo init <folder>
it return:

Building dtrace-provider failed with exit code 1 and signal 0
re-run install with environment variable V set to see the build output
---------------

> [email protected] install /usr/local/lib/node_modules/hexo-cli/node_modules/fsevents
> node-pre-gyp install --fallback-to-build

[fsevents] Success: "/usr/local/lib/node_modules/hexo-cli/node_modules/fsevents/lib/binding/Release/node-v51-darwin-x64/fse.node" is installed via remote

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


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

/usr/local/lib
โ””โ”€โ”ฌ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚   โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚   โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚   โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚   โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ”‚   โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ”‚     โ”œโ”€โ”ฌ [email protected] 
  โ”‚   โ”‚     โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚   โ”‚     โ””โ”€โ”€ [email protected] 
  โ”‚   โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ””โ”€โ”ฌ [email protected] 
    โ””โ”€โ”€ [email protected] 


and then i test:

nibirongdeMacBook-Pro:~ NBR-hugh$ $ hexo init <folder>
-bash: syntax error near unexpected token `newline'
nibirongdeMacBook-Pro:~ NBR-hugh$ sudo npm install --unsafe-perm hexo-cli -g
Password:
/usr/local/bin/hexo -> /usr/local/lib/node_modules/hexo-cli/bin/hexo
/usr/local/lib
โ””โ”€โ”€ [email protected] 

nibirongdeMacBook-Pro:~ NBR-hugh$ hexo init <folder>
-bash: syntax error near unexpected token `newline'
  1. $ sudo npm install -g hexo-cliagain
nibirongdeMacBook-Pro:~ NBR-hugh$ sudo npm install -g hexo-cli
Password:
/usr/local/bin/hexo -> /usr/local/lib/node_modules/hexo-cli/bin/hexo

> [email protected] install /usr/local/lib/node_modules/hexo-cli/node_modules/dtrace-provider
> node scripts/install.js


> [email protected] install /usr/local/lib/node_modules/hexo-cli/node_modules/fsevents
> node-pre-gyp install --fallback-to-build

[fsevents] Success: "/usr/local/lib/node_modules/hexo-cli/node_modules/fsevents/lib/binding/Release/node-v51-darwin-x64/fse.node" is installed via remote

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


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

/usr/local/lib
โ””โ”€โ”ฌ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚   โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚   โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚   โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚   โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ”‚   โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ”‚     โ”œโ”€โ”ฌ [email protected] 
  โ”‚   โ”‚     โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚   โ”‚     โ””โ”€โ”€ [email protected] 
  โ”‚   โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ””โ”€โ”ฌ [email protected] 
    โ””โ”€โ”€ [email protected] 

nibirongdeMacBook-Pro:~ NBR-hugh$ hexo init <folder>
-bash: syntax error near unexpected token `newline'
nibirongdeMacBook-Pro:~ NBR-hugh$ npm uninstall hexo-cli
npm WARN enoent ENOENT: no such file or directory, open '/Users/NBR-hugh/package.json'
npm WARN NBR-hugh No description
npm WARN NBR-hugh No repository field.
npm WARN NBR-hugh No README data
npm WARN NBR-hugh No license field.
nibirongdeMacBook-Pro:~ NBR-hugh$ npm uninstall hexo-cli
npm WARN enoent ENOENT: no such file or directory, open '/Users/NBR-hugh/package.json'
npm WARN NBR-hugh No description
npm WARN NBR-hugh No repository field.
npm WARN NBR-hugh No README data
npm WARN NBR-hugh No license field.
nibirongdeMacBook-Pro:~ NBR-hugh$ sudo npm install -g hexo-cli
Password:
/usr/local/bin/hexo -> /usr/local/lib/node_modules/hexo-cli/bin/hexo
/usr/local/lib
โ””โ”€โ”€ [email protected] 

nibirongdeMacBook-Pro:~ NBR-hugh$ hexo init <folder>
-bash: syntax error near unexpected token `newline'
nibirongdeMacBook-Pro:~ NBR-hugh$ npm uninstall hexo-cli
npm WARN enoent ENOENT: no such file or directory, open '/Users/NBR-hugh/package.json'
npm WARN NBR-hugh No description
npm WARN NBR-hugh No repository field.
npm WARN NBR-hugh No README data
npm WARN NBR-hugh No license field

4.try this:$ npm install hexo --no-optional

the result:

npm WARN deprecated [email protected]: This package is no longer maintained

> [email protected] postinstall /Users/NBR-hugh/node_modules/hexo-util
> npm run build:highlight


> [email protected] build:highlight /Users/NBR-hugh/node_modules/hexo-util
> node scripts/build_highlight_alias.js > highlight_alias.json

/Users/NBR-hugh
โ””โ”€โ”ฌ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚   โ””โ”€โ”ฌ [email protected] 
  โ”‚     โ”œโ”€โ”€ [email protected] 
  โ”‚     โ”œโ”€โ”€ [email protected] 
  โ”‚     โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚   โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚     โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚     โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚ โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚   โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚   โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚   โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚   โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ”‚   โ””โ”€โ”€ [email protected] 
  โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚   โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ”‚ โ”œโ”€โ”€ [email protected] 
  โ”‚ โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚   โ”œโ”€โ”ฌ [email protected] 
  โ”‚   โ”‚ โ””โ”€โ”€ [email protected] 
  โ”‚   โ”œโ”€โ”€ [email protected] 
  โ”‚   โ””โ”€โ”ฌ [email protected] 
  โ”‚     โ”œโ”€โ”€ [email protected] 
  โ”‚     โ”œโ”€โ”€ [email protected] 
  โ”‚     โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ””โ”€โ”ฌ [email protected] 
  โ”‚   โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ”œโ”€โ”ฌ [email protected] 
  โ”‚ โ””โ”€โ”€ [email protected] 
  โ”œโ”€โ”€ [email protected] 
  โ””โ”€โ”ฌ [email protected] 
    โ”œโ”€โ”ฌ [email protected] 
    โ”‚ โ”œโ”€โ”€ [email protected] 
    โ”‚ โ”œโ”€โ”€ [email protected] 
    โ”‚ โ””โ”€โ”€ [email protected] 
    โ”œโ”€โ”ฌ [email protected] 
    โ”‚ โ””โ”€โ”€ [email protected] 
    โ””โ”€โ”ฌ [email protected] 
      โ”œโ”€โ”€ [email protected] 
      โ””โ”€โ”€ [email protected] 

npm WARN enoent ENOENT: no such file or directory, open '/Users/NBR-hugh/package.json'
npm WARN NBR-hugh No description
npm WARN NBR-hugh No repository field.
npm WARN NBR-hugh No README data
npm WARN NBR-hugh No license field.
nibirongdeMacBook-Pro:~ NBR-hugh$ 
nibirongdeMacBook-Pro:~ NBR-hugh$ config.yml
-bash: config.yml: command not found

it's also failded.help please!

Most helpful comment

Hey - so I got this fixed. What I finally did was uninstalled Node.js using tonymtz's script, with one modification which you can find in my fork at https://gist.github.com/bartread/5d8c09310156b3a37c968b2f6d3a1e79.

I then installed Node Version Manager (nvm): https://github.com/creationix/nvm, and installed node using:

nvm install node

I was then able to successfully install hexo with:

npm install -g hexo

Note that once you're using nvm, not only can you work with multiple versions of node (which is handy), but you no longer need to sudo to install npm packages globally.

All is well, and I am very happy. Thanks for all the assistance.

All 18 comments

ๆˆ‘ไนŸๆ˜ฏ่ฟ™ไธช้—ฎ้ข˜โ€ฆโ€ฆไธ€ๆจกไธ€ๆ ท็š„

For the last command result, I saw bunch of warning message, not failing.

the config file name is _config.yml, and you could open it via vi _config.yml

@NoahDragon I open it like as you said,and the result like this:

Last login: Wed Nov 16 10:13:05 on ttys001
Restored session: 2016ๅนด11ๆœˆ18ๆ—ฅ ๆ˜ŸๆœŸไบ” 13ๆ—ถ31ๅˆ†09็ง’ CST
nibirongdeMacBook-Pro:~ NBR-hugh$ vi _config.yml


~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    
~                                                                                    

Usually Hexo installation does not need sudo permission. Did you installed npm with sudo?

https://hexo.io/docs/index.html#Requirements
Could you please also check:

You may encounter some problems when compiling. Please install Xcode from App Store first. After Xcode is installed, open Xcode and go to Preferences -> Download -> Command Line Tools -> Install to install command line tools.

The same as me...

hexo-cli: 1.0.2
os: Darwin 15.6.0 darwin x64
http_parser: 2.7.0
node: 7.0.0
v8: 5.4.500.36
uv: 1.9.1
zlib: 1.2.8
ares: 1.10.1-DEV
icu: 57.1
modules: 51
openssl: 1.0.2j

when I run

$ hexo server

dyld: lazy symbol binding failed: Symbol not found: _node_module_register
Referenced from: /Users/apple/Desktop/sobaiso/node_modules/fsevents/lib/binding/Release/node-v51-darwin-x64/fse.node
Expected in: flat namespace

dyld: Symbol not found: _node_module_register
Referenced from: /Users/apple/Desktop/sobaiso/node_modules/fsevents/lib/binding/Release/node-v51-darwin-x64/fse.node
Expected in: flat namespace

Does anyone have a solution ?

@NoahDragon yes,i did.however, i run the install code without sudo for the first time,but it also doesnโ€˜t work.and i have install xcode already.

Did you get it working? I too am unable to install on OSX, but I get different errors. Will post momentarily.

OS: Yosemite 10.10.5
Node: v6.9.2
npm: 3.10.9
XCode: 7.0 (7A220) (and, btw, the Preferences -> Download -> Command Line Tools -> Install option it says to use at https://hexo.io/docs/ doesn't exist!)

Here's what I get:

1) Run npm install -g hexo-cli, get

npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "hexo-cli"
npm ERR! node v6.9.2
npm ERR! npm  v3.10.9
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!     at Error (native)
npm ERR!  { Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!     at Error (native)
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/bart/npm-debug.log

2) Run sudo npm install -g hexo-cli, get:

/usr/local/bin/hexo -> /usr/local/lib/node_modules/hexo-cli/bin/hexo

> [email protected] install /usr/local/lib/node_modules/hexo-cli/node_modules/dtrace-provider
> node scripts/install.js

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
path.js:1142
          cwd = process.cwd();
                        ^

Error: EACCES: permission denied, uv_cwd
    at Error (native)
    at Object.resolve (path.js:1142:25)
    at startup (bootstrap_node.js:127:32)
    at bootstrap_node.js:509:3

> [email protected] install /usr/local/lib/node_modules/hexo-cli/node_modules/fsevents
> node-pre-gyp install --fallback-to-build

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
sh: node-pre-gyp: command not found

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

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
sh: npm: command not found
/usr/local/lib
โ””โ”€โ”€ (empty)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/hexo-cli/node_modules/dtrace-provider):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node scripts/install.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/hexo-cli/node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-pre-gyp install --fallback-to-build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: spawn ENOENT
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "hexo-cli"
npm ERR! node v6.9.2
npm ERR! npm  v3.10.9
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] postinstall: `npm run build:highlight`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script 'npm run build:highlight'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the hexo-util package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run build:highlight
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs hexo-util
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls hexo-util
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/bart/npm-debug.log
npm ERR! code 1

The end of npm-debug.log contains the following:

14088 verbose lifecycle [email protected]~postinstall: unsafe-perm in lifecycle false 14089 verbose lifecycle [email protected]~postinstall: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_modules/hexo-cli/node_modules/hexo-util/node_modules/.bin:/usr/local/lib/node_modules/hexo-cli/node_modules/.bin:/usr/local/lib/node_modules/.bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin 14090 verbose lifecycle [email protected]~postinstall: CWD: /usr/local/lib/node_modules/hexo-cli/node_modules/hexo-util 14091 silly lifecycle [email protected]~postinstall: Args: [ '-c', 'npm run build:highlight' ] 14092 info lifecycle [email protected]~postinstall: Failed to exec postinstall script 14093 verbose unlock done using /Users/bart/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging 14094 silly rollbackFailedOptional Starting 14095 silly rollbackFailedOptional Finishing 14096 silly runTopLevelLifecycles Finishing 14097 silly install printInstalled 14098 warn optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/hexo-cli/node_modules/dtrace-provider): 14099 warn optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node scripts/install.js` 14099 warn optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 14100 verbose optional SKIPPING OPTIONAL DEPENDENCY: 14100 verbose optional Failed at the [email protected] install script 'node scripts/install.js'. 14100 verbose optional SKIPPING OPTIONAL DEPENDENCY: Make sure you have the latest version of node.js and npm installed. 14100 verbose optional SKIPPING OPTIONAL DEPENDENCY: If you do, this is most likely a problem with the dtrace-provider package, 14100 verbose optional SKIPPING OPTIONAL DEPENDENCY: not with npm itself. 14100 verbose optional SKIPPING OPTIONAL DEPENDENCY: Tell the author that this fails on your system: 14100 verbose optional SKIPPING OPTIONAL DEPENDENCY: node scripts/install.js 14100 verbose optional SKIPPING OPTIONAL DEPENDENCY: You can get information on how to open an issue for this project with: 14100 verbose optional SKIPPING OPTIONAL DEPENDENCY: npm bugs dtrace-provider 14100 verbose optional SKIPPING OPTIONAL DEPENDENCY: Or if that isn't available, you can get their info via: 14100 verbose optional SKIPPING OPTIONAL DEPENDENCY: npm owner ls dtrace-provider 14100 verbose optional SKIPPING OPTIONAL DEPENDENCY: There is likely additional logging output above. 14101 warn optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/hexo-cli/node_modules/fsevents): 14102 warn optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-pre-gyp install --fallback-to-build` 14102 warn optional SKIPPING OPTIONAL DEPENDENCY: spawn ENOENT 14103 verbose optional SKIPPING OPTIONAL DEPENDENCY: 14103 verbose optional Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'. 14103 verbose optional SKIPPING OPTIONAL DEPENDENCY: Make sure you have the latest version of node.js and npm installed. 14103 verbose optional SKIPPING OPTIONAL DEPENDENCY: If you do, this is most likely a problem with the fsevents package, 14103 verbose optional SKIPPING OPTIONAL DEPENDENCY: not with npm itself. 14103 verbose optional SKIPPING OPTIONAL DEPENDENCY: Tell the author that this fails on your system: 14103 verbose optional SKIPPING OPTIONAL DEPENDENCY: node-pre-gyp install --fallback-to-build 14103 verbose optional SKIPPING OPTIONAL DEPENDENCY: You can get information on how to open an issue for this project with: 14103 verbose optional SKIPPING OPTIONAL DEPENDENCY: npm bugs fsevents 14103 verbose optional SKIPPING OPTIONAL DEPENDENCY: Or if that isn't available, you can get their info via: 14103 verbose optional SKIPPING OPTIONAL DEPENDENCY: npm owner ls fsevents 14103 verbose optional SKIPPING OPTIONAL DEPENDENCY: There is likely additional logging output above. 14104 verbose stack Error: [email protected] postinstall: `npm run build:highlight` 14104 verbose stack spawn ENOENT 14104 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:33:16) 14104 verbose stack at emitTwo (events.js:106:13) 14104 verbose stack at ChildProcess.emit (events.js:191:7) 14104 verbose stack at maybeClose (internal/child_process.js:877:16) 14104 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 14105 verbose pkgid [email protected] 14106 verbose cwd /Users/bart 14107 error Darwin 14.5.0 14108 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "hexo-cli" 14109 error node v6.9.2 14110 error npm v3.10.9 14111 error file sh 14112 error code ELIFECYCLE 14113 error errno ENOENT 14114 error syscall spawn 14115 error [email protected] postinstall: `npm run build:highlight` 14115 error spawn ENOENT 14116 error Failed at the [email protected] postinstall script 'npm run build:highlight'. 14116 error Make sure you have the latest version of node.js and npm installed. 14116 error If you do, this is most likely a problem with the hexo-util package, 14116 error not with npm itself. 14116 error Tell the author that this fails on your system: 14116 error npm run build:highlight 14116 error You can get information on how to open an issue for this project with: 14116 error npm bugs hexo-util 14116 error Or if that isn't available, you can get their info via: 14116 error npm owner ls hexo-util 14116 error There is likely additional logging output above. 14117 verbose exit [ 1, true ]

I'm at a bit of a loss at the moment, but I'm going to try taking a look at some of the individual errors and see if I can gain any insight that way.

Thanks,

Bart

@bartread The error looks like all about the permissions. Have you used npm to install other packages than Hexo with -g option?

So a similar cwd() issue was reported against galenframework: https://github.com/hypery2k/galenframework-cli/issues/5. They ended up hotfixing to deal with directory names containing spaces: https://github.com/hypery2k/galenframework-cli/pull/6. Not saying it's definitely related, but something to think about.

@NoahDragon Yes, many times, and so far without problems (at least when sudo is used).

OK, so I've tried different things, based on googling around regarding that original cwd permission error:

  • Update to latest npm (4.0.5)
  • Update locate.updatedb

Neither of these has done the trick. I'm at a bit of a loss.

It would really help if I had some idea what folder it lacks permissions on but (to me at least) that's not obvious.

The permission issue is really annoying. It depends on many factors in the system environment, and also hard to reproduce on a different machine.

I took a look at hypery2k/galenframework-cli#6 , I just wonder if the Hexo folder name contains space when you initial it?

@NoahDragon Haha - yeah, annoying is about the size of it. Thanks for getitng back to me again.

I don't think the Hexo folder name contains a space. Here, for example, is some output showing where it's trying to install the dtrace-provider dependency:

> [email protected] install /usr/local/lib/node_modules/hexo-cli/node_modules/dtrace-provider
> node scripts/install.js

So you can see there's no space in the path for hexo-cli anywhere. And then my working folder when I try to install hexo-cli is /Users/bart, so it's not that either. Something very weird going on, that's for sure.

Btw, I logged into one of my AWS boxes, based on a Bitnami AMI running Ubuntu 14.04.4 and Node 6.0.0-2, and hexo-cli installed find (as long as I used sudo).

@bartread have you tried to fix the npm permission? https://docs.npmjs.com/getting-started/fixing-npm-permissions

Hey - so I got this fixed. What I finally did was uninstalled Node.js using tonymtz's script, with one modification which you can find in my fork at https://gist.github.com/bartread/5d8c09310156b3a37c968b2f6d3a1e79.

I then installed Node Version Manager (nvm): https://github.com/creationix/nvm, and installed node using:

nvm install node

I was then able to successfully install hexo with:

npm install -g hexo

Note that once you're using nvm, not only can you work with multiple versions of node (which is handy), but you no longer need to sudo to install npm packages globally.

All is well, and I am very happy. Thanks for all the assistance.

Great, glad it been fixed!

Was this page helpful?
0 / 5 - 0 ratings