Skip to content

Mac安装不了hexo啊 #1326

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

Closed
sakz opened this issue Jun 10, 2015 · 21 comments
Closed

Mac安装不了hexo啊 #1326

sakz opened this issue Jun 10, 2015 · 21 comments
Labels
question Needs help in usage

Comments

@sakz
Copy link

sakz commented Jun 10, 2015

npm install -g hexo-cli

npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "hexo-cli"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! path /usr/local/lib/node_modules/hexo-cli
npm ERR! code EACCES
npm ERR! errno -13

npm ERR! Error: EACCES, rmdir '/usr/local/lib/node_modules/hexo-cli'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, rmdir '/usr/local/lib/node_modules/hexo-cli']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/hexo-cli' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES, rmdir '/usr/local/lib/node_modules/hexo-cli'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EACCES, rmdir '/usr/local/lib/node_modules/hexo-cli']
npm ERR! error rolling back errno: -13,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/hexo-cli' }

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

@tommy351
Copy link
Member

npm ERR! Please try running this command again as root/Administrator.

@sakz
Copy link
Author

sakz commented Jun 10, 2015

hexo deploy
{ [Error: Cannot find module './build/Release/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/Debug/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
ERROR Deployer not found: github

how to solve this problem

@Xuanwo
Copy link
Contributor

Xuanwo commented Jun 10, 2015

run npm install hexo-deployer-git --save
and then use git instead of github

@TissueFluid
Copy link

@Xuanwo than => then

@Xuanwo
Copy link
Contributor

Xuanwo commented Jun 17, 2015

@TissueFluid gg, sorry for my poor english

@sakz
Copy link
Author

sakz commented Jun 21, 2015

sudo npm install hexo-cli -g
Password:
\
> fsevents@0.3.6 install /usr/local/lib/node_modules/hexo-cli/node_modules/hexo-fs/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild

gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EPERM, utime '/Users/saber/.node-gyp/0.12.4'
gyp ERR! stack     at Error (native)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/hexo-cli/node_modules/hexo-fs/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing fsevents@0.3.6
/usr/local/bin/hexo -> /usr/local/lib/node_modules/hexo-cli/bin/hexo
hexo-cli@0.1.7 /usr/local/lib/node_modules/hexo-cli
├── abbrev@1.0.7
├── minimist@1.1.1
├── bluebird@2.9.30
├── tildify@1.1.0 (os-homedir@1.0.0)
├── chalk@1.0.0 (escape-string-regexp@1.0.3, ansi-styles@2.0.1, supports-color@1.3.1, strip-ansi@2.0.1, has-ansi@1.0.3)
└── hexo-fs@0.1.3 (escape-string-regexp@1.0.3, graceful-fs@3.0.8, chokidar@0.12.6)

@sakz
Copy link
Author

sakz commented Jun 21, 2015

@Xuanwo i try this command npm install hexo-deployer-git --save but it did not work

hexo
{ [Error: Cannot find module './build/Release/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/Debug/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
Usage: hexo

@sakz
Copy link
Author

sakz commented Jun 21, 2015

$ npm install hexo --no-optional

I reinstall with the command above
It finally works!!!!!!

@akring
Copy link

akring commented Jun 24, 2015

@sakz Great job man!Same problem and same solution,this worked for me.

@zhuangxq
Copy link

zhuangxq commented Jul 6, 2015

@sakz Great job man!Same problem and same solution,this worked for me, too.

@felayman
Copy link

@sakz i meet the same question with you. and use the same command npm install hexo --no-optional and it finally work

@PokimLee
Copy link

@sakz you are so coooool ! man

@pandaApe
Copy link

@sakz It worked for me, tks!

@cupools
Copy link

cupools commented Nov 15, 2015

@sakz thanks!

@WangXiZhu
Copy link

hello, when i want to run hexo , the command line show

exo hexo
Usage: hexo

Commands:
clean Removed generated files and cache.
config Get or set configurations.
deploy Deploy your website.
generate Generate static files.
help Get help on a command.
init Create a new Hexo folder.
list List the information of the site
migrate Migrate your site from other system to Hexo.
new Create a new post.
publish Moves a draft post from _drafts to _posts folder.
render Render files with renderer plugins.
version Display version information.

Global Options:
--config Specify config file instead of using _config.yml
--cwd Specify the CWD
--debug Display all verbose messages in the terminal
--draft Display draft posts
--safe Disable all plugins and scripts
--silent Hide output on console

For more help, you can use 'hexo help [command]' for the detailed information
or you can check the docs: http://hexo.io/docs/

i guess the hexo is successfly installed on my mac , but the server does't work

@WangXiZhu
Copy link

oh, after i update hexo , the first problem is solved. but when i change the file '_config.yml' , the hexo server is not work!

@leesei
Copy link
Member

leesei commented Mar 4, 2016

@WangXiZhu please open new issue instead of commenting on closed ones
post enough info for us to analyse the problem

@edagarli
Copy link

npm install hexo --no-optional

“--no-optional" why?

@edagarli
Copy link

justhacker:edagarli.github.io justhacker$ hexo
Usage: hexo

Commands:
clean Removed generated files and cache.
config Get or set configurations.
deploy Deploy your website.
generate Generate static files.
help Get help on a command.
init Create a new Hexo folder.
list List the information of the site
migrate Migrate your site from other system to Hexo.
new Create a new post.
publish Moves a draft post from _drafts to _posts folder.
render Render files with renderer plugins.
version Display version information.

Global Options:
--config Specify config file instead of using _config.yml
--cwd Specify the CWD
--debug Display all verbose messages in the terminal
--draft Display draft posts
--safe Disable all plugins and scripts
--silent Hide output on console

@edagarli
Copy link

server command unrecognized

@leesei
Copy link
Member

leesei commented Mar 19, 2016

@edagarli Do read the documents:
https://hexo.io/docs/server.html#hexo-server

@hexojs hexojs locked and limited conversation to collaborators Mar 19, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Needs help in usage
Projects
None yet
Development

No branches or pull requests