1
ysc3839 2018-12-11 19:54:04 +08:00 via Android
ls 看看?
|
2
wbing 2018-12-11 19:56:15 +08:00
npm install hexo-server
|
3
adyyq OP @wbing 安装不成功,显示
adyan@adyan-PC MINGW32 /d/hexo $ npm install hexo-server npm WARN saveError ENOENT: no such file or directory, open 'D:\hexo\package.json' npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN enoent ENOENT: no such file or directory, open 'D:\hexo\package.json' npm WARN hexo No description npm WARN hexo No repository field. npm WARN hexo No README data npm WARN hexo No license field. + [email protected] added 50 packages from 26 contributors and audited 75 packages in 10.858s found 0 vulnerabilities adyan@adyan-PC MINGW32 /d/hexo $ hexo s Usage: hexo <command> Commands: help Get help on a command. init Create a new Hexo folder. 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/ adyan@adyan-PC MINGW32 /d/hexo $ npm install hexo-server npm WARN saveError ENOENT: no such file or directory, open 'D:\hexo\package.json' npm WARN enoent ENOENT: no such file or directory, open 'D:\hexo\package.json' npm WARN hexo No description npm WARN hexo No repository field. npm WARN hexo No README data npm WARN hexo No license field. + [email protected] updated 1 package and audited 228 packages in 3.84s found 0 vulnerabilities adyan@adyan-PC MINGW32 /d/hexo $ hexo g Usage: hexo <command> Commands: help Get help on a command. init Create a new Hexo folder. 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/ adyan@adyan-PC MINGW32 /d/hexo $ hexo s Usage: hexo <command> Commands: help Get help on a command. init Create a new Hexo folder. 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/ adyan@adyan-PC MINGW32 /d/hexo $ |
4
mmdsun 2018-12-11 20:08:25 +08:00 via Android
netstat -ano findstr| 4000 win 看看端口占用情况。被占用了吧
|
5
vsitebon 2018-12-12 00:12:28 +08:00 via iPhone
有可能两个原因,一个是你在_config.yml 里面添加了 plugins 字样。会导致 server 不起来。Hexo 3 以后不需要再手动添加插件到列表当中。第二个就是你的确没安装 hexo server。还有就是看你第二次的报错信息,你很有可能并没有在你初始化后的博客目录中使用 Hexo Server。是博客根目录,不是 Hexo 目录中
|