安装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 [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this
C:\Users\yk\AppData\Roaming\npm\cnpm -> C:\Users\yk\AppData\Roaming\npm\node_modules\cnpm\bin\cnpm
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 --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\[email protected]@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 [email protected]@abbrev
[2/10] minimist@^1.2.5 installed at [email protected]@minimist
[3/10] hexo-log@^2.0.0 installed at [email protected]@hexo-log
[4/10] command-exists@^1.2.8 installed at [email protected]@command-exists
[5/10] tildify@^2.0.0 installed at [email protected]@tildify
[6/10] bluebird@^3.5.5 installed at [email protected]@bluebird
platform unsupported [email protected] › [email protected] › 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 [email protected]@chalk
[8/10] resolve@^1.11.0 installed at [email protected]@resolve
[9/10] hexo-fs@^3.0.1 installed at [email protected]@hexo-fs
[10/10] hexo-util@^2.0.0 installed at [email protected]@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
→ [email protected] › 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)
[[email protected]] 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>