Microsoft Windows [版本 10.0.19041.572]
(c) 2020 Microsoft Corporation. 保留所有权利。
C:\Users\yk>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
+ [email protected]
updated 2 packages in 17.791s
C:\Users\yk>cnpm -v
[email protected] (C:\Users\yk\AppData\Roaming\npm\node_modules\cnpm\lib\parse_argv.js)
[email protected] (C:\Users\yk\AppData\Roaming\npm\node_modules\cnpm\node_modules\npm\lib\npm.js)
[email protected] (E:\software\nodejs\node.exe)
[email protected] (C:\Users\yk\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\lib\index.js)
prefix=C:\Users\yk\AppData\Roaming\npm
win32 x64 10.0.19041
registry=https://r.npm.taobao.org
C:\Users\yk>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
C:\Users\yk>cnpm -v
[email protected] (C:\Users\yk\AppData\Roaming\npm\node_modules\cnpm\lib\parse_argv.js)
[email protected] (C:\Users\yk\AppData\Roaming\npm\node_modules\cnpm\node_modules\npm\lib\npm.js)
[email protected] (E:\software\nodejs\node.exe)
[email protected] (C:\Users\yk\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\lib\index.js)
prefix=C:\Users\yk\AppData\Roaming\npm
win32 x64 10.0.19041
registry=https://r.npm.taobao.org
C:\Users\yk>cnpm install -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\[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 node_modules\[email protected]@abbrev
[2/10] tildify@^2.0.0 installed at node_modules\[email protected]@tildify
[3/10] hexo-log@^2.0.0 installed at node_modules\[email protected]@hexo-log
[4/10] minimist@^1.2.5 installed at node_modules\[email protected]@minimist
[5/10] command-exists@^1.2.8 installed at node_modules\[email protected]@command-exists
[6/10] bluebird@^3.5.5 installed at node_modules\[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 node_modules\[email protected]@chalk
[8/10] resolve@^1.11.0 installed at node_modules\[email protected]@resolve
[9/10] hexo-util@^2.0.0 installed at node_modules\[email protected]@hexo-util
[10/10] hexo-fs@^3.0.1 installed at node_modules\[email protected]@hexo-fs
Recently updated (since 2020-11-03): 1 packages (detail see file C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\.recently_updates.txt)
2020-11-05
→ [email protected] › is-core-module@^2.0.0(2.1.0) (04:14:31)
All packages installed (63 packages installed from npm registry, used 3s(network 3s), speed 514.84kB/s, json 63(141.58kB), 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
C:\Users\yk>
C:\Users\yk>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
C:\Users\yk>pwd
'pwd' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Users\yk>dir
驱动器 C 中的卷是 Windows-SSD
卷的序列号是 16E5-7D83
C:\Users\yk 的目录
2020/11/09 00:05 .
2020/11/09 00:05 ..
2020/11/04 18:07 .android
2020/11/04 22:32 .config
2020/11/04 21:37 90 .gitconfig
2020/11/04 18:07 .gradle
2020/11/04 22:33 145 .node_repl_history
2020/11/04 22:38 .npminstall_tarball
2020/11/04 21:26 .vscode
2020/11/01 14:56 3D Objects
2020/11/01 14:56 Contacts
2020/11/02 00:05 Desktop
2020/11/02 00:05 Documents
2020/11/01 22:05 Downloads
2020/11/01 14:56 Favorites
2020/11/01 14:56 Links
2020/11/01 14:56 Music
2020/11/10 00:15 OneDrive
2020/11/01 14:56 Saved Games
2020/11/01 14:58 Searches
2020/11/04 09:27 Videos
2020/11/01 17:28 WestWorldVPN
2020/11/01 22:41 Yinxiang Biji
2020/11/06 15:50 Zotero
2 个文件 235 字节
22 个目录 42,859,081,728 可用字节
C:\Users\yk>cd d:
D:\
C:\Users\yk>cd d
系统找不到指定的路径。
C:\Users\yk>d:
D:\>d:
D:\>dir
驱动器 D 中的卷是 Data
卷的序列号是 EA77-17CA
D:\ 的目录
2020/11/01 17:24 Download
2020/11/02 00:05 officeonedrive
2020/11/10 00:21 PersonalFile
2020/11/09 01:03 StudyLearningFile
0 个文件 0 字节
4 个目录 281,120,292,864 可用字节
D:\>cd StudyLearningFile
D:\StudyLearningFile>dir
驱动器 D 中的卷是 Data
卷的序列号是 EA77-17CA
D:\StudyLearningFile 的目录
2020/11/09 01:03 .
2020/11/09 01:03 ..
2020/11/09 01:03 Atempfile
2020/11/07 20:36 LabFile
2020/11/09 00:58 LearningMaterialsForEachSubject
2020/11/08 16:25 ppt模板
2020/11/08 17:37 Programming
2020/11/09 09:13 Zetero
0 个文件 0 字节
8 个目录 281,120,292,864 可用字节
D:\StudyLearningFile>cd Programming
D:\StudyLearningFile\Programming>dir
驱动器 D 中的卷是 Data
卷的序列号是 EA77-17CA
D:\StudyLearningFile\Programming 的目录
2020/11/08 17:37 .
2020/11/08 17:37 ..
2020/11/08 17:37 Hexo
0 个文件 0 字节
3 个目录 281,120,292,864 可用字节
D:\StudyLearningFile\Programming>cd hexo
D:\StudyLearningFile\Programming\Hexo>mkdir blog
D:\StudyLearningFile\Programming\Hexo>dir
驱动器 D 中的卷是 Data
卷的序列号是 EA77-17CA
D:\StudyLearningFile\Programming\Hexo 的目录
2020/11/10 00:59 .
2020/11/10 00:59 ..
2020/11/10 00:59 blog
0 个文件 0 字节
3 个目录 281,120,292,864 可用字节
D:\StudyLearningFile\Programming\Hexo>chdir
D:\StudyLearningFile\Programming\Hexo
D:\StudyLearningFile\Programming\Hexo>sudo hexo init
'sudo' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
D:\StudyLearningFile\Programming\Hexo>hexo init
FATAL D:\StudyLearningFile\Programming\Hexo not empty, please run `hexo init` on an empty folder and then copy your files into it
FATAL {
err: Error: target not empty
at Context.initConsole (C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\lib\console\init.js:23:26)
at Context.tryCatcher (C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\[email protected]@bluebird\js\release\util.js:16:23)
at Context. (C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\[email protected]@bluebird\js\release\method.js:15:34)
at C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\lib\context.js:37:11
at Promise._execute (C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\[email protected]@bluebird\js\release\debuggability.js:384:9)
at Promise._resolveFromExecutor (C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\[email protected]@bluebird\js\release\promise.js:518:18)
at new Promise (C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\[email protected]@bluebird\js\release\promise.js:103:10)
at Context.call (C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\lib\context.js:33:12)
at C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\lib\hexo.js:68:17
at tryCatcher (C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\[email protected]@bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\[email protected]@bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\[email protected]@bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\[email protected]@bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\[email protected]@bluebird\js\release\promise.js:729:18)
at _drainQueueStep (C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\[email protected]@bluebird\js\release\async.js:93:12)
at _drainQueue (C:\Users\yk\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\[email protected]@bluebird\js\release\async.js:86:9)
} Something's wrong. Maybe you can find the solution here: %s http://hexo.io/docs/troubleshooting.html
D:\StudyLearningFile\Programming\Hexo>cd blog
D:\StudyLearningFile\Programming\Hexo\blog>hexo init
INFO Cloning hexo-starter https://github.com/hexojs/hexo-starter.git
[32mINFO [39m Install dependencies
[