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

Mac安装不了hexo啊 #1326

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

Comments

@sakz

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

This comment has been minimized.

Show comment
Hide comment
@tommy351

tommy351 Jun 10, 2015

Member

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

Member

tommy351 commented Jun 10, 2015

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

@sakz

This comment has been minimized.

Show comment
Hide comment
@sakz

sakz 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

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

This comment has been minimized.

Show comment
Hide comment
@Xuanwo

Xuanwo Jun 10, 2015

Contributor

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

Contributor

Xuanwo commented Jun 10, 2015

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

@TissueFluid

This comment has been minimized.

Show comment
Hide comment
@TissueFluid

TissueFluid commented Jun 17, 2015

@Xuanwo than => then

@Xuanwo

This comment has been minimized.

Show comment
Hide comment
@Xuanwo

Xuanwo Jun 17, 2015

Contributor

@TissueFluid gg, sorry for my poor english

Contributor

Xuanwo commented Jun 17, 2015

@TissueFluid gg, sorry for my poor english

@sakz

This comment has been minimized.

Show comment
Hide comment
@sakz

sakz 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 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

This comment has been minimized.

Show comment
Hide comment
@sakz

sakz 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 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

This comment has been minimized.

Show comment
Hide comment
@sakz

sakz Jun 21, 2015

$ npm install hexo --no-optional

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

sakz commented Jun 21, 2015

$ npm install hexo --no-optional

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

@akring

This comment has been minimized.

Show comment
Hide comment
@akring

akring Jun 24, 2015

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

akring commented Jun 24, 2015

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

@zhuangxq

This comment has been minimized.

Show comment
Hide comment
@zhuangxq

zhuangxq Jul 6, 2015

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

zhuangxq commented Jul 6, 2015

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

@felayman

This comment has been minimized.

Show comment
Hide comment
@felayman

felayman Jul 10, 2015

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

felayman commented Jul 10, 2015

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

@PokimLee

This comment has been minimized.

Show comment
Hide comment
@PokimLee

PokimLee Jul 15, 2015

@sakz you are so coooool ! man

PokimLee commented Jul 15, 2015

@sakz you are so coooool ! man

@pandaApe

This comment has been minimized.

Show comment
Hide comment
@pandaApe

pandaApe Aug 22, 2015

@sakz It worked for me, tks!

pandaApe commented Aug 22, 2015

@sakz It worked for me, tks!

@cupools

This comment has been minimized.

Show comment
Hide comment
@cupools

cupools commented Nov 15, 2015

@sakz thanks!

@WangXiZhu

This comment has been minimized.

Show comment
Hide comment
@WangXiZhu

WangXiZhu Mar 3, 2016

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 commented Mar 3, 2016

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

This comment has been minimized.

Show comment
Hide comment
@WangXiZhu

WangXiZhu Mar 3, 2016

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

WangXiZhu commented Mar 3, 2016

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

This comment has been minimized.

Show comment
Hide comment
@leesei

leesei Mar 4, 2016

Member

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

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

This comment has been minimized.

Show comment
Hide comment
@edagarli

edagarli Mar 18, 2016

npm install hexo --no-optional

“--no-optional" why?

edagarli commented Mar 18, 2016

npm install hexo --no-optional

“--no-optional" why?

@edagarli

This comment has been minimized.

Show comment
Hide comment
@edagarli

edagarli Mar 18, 2016

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 commented Mar 18, 2016

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

This comment has been minimized.

Show comment
Hide comment
@edagarli

edagarli Mar 18, 2016

server command unrecognized

edagarli commented Mar 18, 2016

server command unrecognized

@leesei

This comment has been minimized.

Show comment
Hide comment
@leesei
Member

leesei commented Mar 19, 2016

@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.