Hexo 搭建1

安装Hexo框架

`Microsoft Windows [版本 10.0.19041.572]
© 2020 Microsoft Corporation. 保留所有权利。

C:\Users\yk>E:

E:>cd software\nodejs

E:\software\nodejs>node -v
v14.15.0

E:\software\nodejs>npm -v
6.14.8

E:\software\nodejs>npm install -g cnpm --registry=http://registry.npm.taobao.org
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this
C:\Users\yk\AppData\Roaming\npm\cnpm -> C:\Users\yk\AppData\Roaming\npm\node_modules\cnpm\bin\cnpm

  • cnpm@6.1.1
    added 688 packages from 971 contributors in 19.419s

E:\software\nodejs>cnpm
Usage: cnpm [option]
Help: http://cnpmjs.org/help/cnpm

Extend command
web open cnpm web (ex.: cnpm web)
check [ingoreupdate] check project dependencies, add ignoreupdate will not check modules’ latest version(ex.: cnpm check, cnpm check -i)
doc [moduleName] open document page (ex.: cnpm doc urllib)
sync [moduleName] sync module from source npm (ex.: cnpm sync urllib)
user [username] open user profile page (ex.: cnpm user fengmk2)

npm command use --registry=https://r.npm.taobao.org
where is one of:
add-user, adduser, apihelp, author, bin, bugs, c, cache,
completion, config, ddp, dedupe, deprecate, docs, edit,
explore, faq, find, find-dupes, get, help, help-search,
home, i, info, init, install, isntall, la, link, list, ll,
ln, login, ls, outdated, owner, pack, prefix, prune,
publish, r, rb, rebuild, remove, restart, rm, root,
run-script, s, se, search, set, show, shrinkwrap, star,
start, stop, submodule, tag, test, tst, un, uninstall,
unlink, unpublish, unstar, up, update, v, version, view,
whoami
npm -h quick help on
npm -l display full usage info
npm faq commonly asked questions
npm help search for help on
npm help npm involved overview

  Specify configs in the ini-formatted file:
      C:\Users\yk\.cnpmrc
  or on the command line via: npm <command> --key value
  Config info can be viewed via: npm help config

E:\software\nodejs>cnpm -g hexo-cli

error: unknown option `-g’

E:\software\nodejs>cnpm isntall -g hexo-cli
Downloading hexo-cli to C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli_tmp
Copying C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli_tmp_hexo-cli@4.2.0@hexo-cli to C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli
Installing hexo-cli’s dependencies to C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli/node_modules
[1/10] abbrev@^1.1.1 installed at node_modules_abbrev@1.1.1@abbrev
[2/10] minimist@^1.2.5 installed at node_modules_minimist@1.2.5@minimist
[3/10] hexo-log@^2.0.0 installed at node_modules_hexo-log@2.0.0@hexo-log
[4/10] command-exists@^1.2.8 installed at node_modules_command-exists@1.2.9@command-exists
[5/10] tildify@^2.0.0 installed at node_modules_tildify@2.0.0@tildify
[6/10] bluebird@^3.5.5 installed at node_modules_bluebird@3.7.2@bluebird
platform unsupported hexo-fs@3.1.0 › chokidar@3.4.3 › fsevents@~2.1.2 Package require os(darwin) not compatible with your platform(win32)
[fsevents@~2.1.2] optional install error: Package require os(darwin) not compatible with your platform(win32)
[7/10] chalk@^4.0.0 installed at node_modules_chalk@4.1.0@chalk
[8/10] resolve@^1.11.0 installed at node_modules_resolve@1.18.1@resolve
[9/10] hexo-fs@^3.0.1 installed at node_modules_hexo-fs@3.1.0@hexo-fs
[10/10] hexo-util@^2.0.0 installed at node_modules_hexo-util@2.4.0@hexo-util
Recently updated (since 2020-10-28): 1 packages (detail see file C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\node_modules.recently_updates.txt)
2020-10-29
→ hexo-util@2.4.0 › highlight.js@^10.0.0(10.3.2) (21:08:09)
All packages installed (63 packages installed from npm registry, used 2s(network 2s), speed 786.44kB/s, json 63(138.35kB), tarball 1.4MB)
[hexo-cli@4.2.0] link C:\Users\yk\AppData\Roaming\npm\hexo@ -> C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\bin\hexo

E:\software\nodejs>
E:\software\nodejs>hexo -v
hexo-cli: 4.2.0
os: Windows_NT 10.0.19041 win32 x64
node: 14.15.0
v8: 8.4.371.19-node.17
uv: 1.40.0
zlib: 1.2.11
brotli: 1.0.9
ares: 1.16.1
modules: 83
nghttp2: 1.41.0
napi: 7
llhttp: 2.1.3
openssl: 1.1.1g
cldr: 37.0
icu: 67.1
tz: 2020a
unicode: 13.0

E:\software\nodejs>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值