npm :我将命令 "npm ls -g -depth=0" 误输入为 "npm ls -g -d=0" 并且它已被执行
npm : i mis-typed a command "npm ls -g -depth=0" as "npm ls -g -d=0" and it's been executed
我认为选项“-depth=0”也可以作为“-d=0”完成并且已经执行了。但结果不是我所期望的。我已经搜索了很长时间以查看我刚刚做了什么,但没有任何线索。该命令是什么意思?
C:\Users\Sam>npm ls -g -d=0
npm info it worked if it ends with ok
npm info using npm@6.10.3
npm info using node@v10.15.1
C:\Users\Sam\AppData\Roaming\npm
`-- (empty)
npm timing npm Completed in 1821ms
npm info ok
C:\Users\Sam>npm -d -h
npm info it worked if it ends with ok
npm info using npm@6.10.3
npm info using node@v10.15.1
Usage: npm <command>
where <command> is one of:
access, adduser, audit, bin, bugs, c, cache, ci, cit,
clean-install, clean-install-test, completion, config,
create, ddp, dedupe, deprecate, dist-tag, docs, doctor,
edit, explore, get, help, help-search, hook, i, init,
install, install-ci-test, install-test, it, link, list, ln,
login, logout, ls, org, outdated, owner, pack, ping, prefix,
profile, prune, publish, rb, rebuild, repo, restart, root,
run, run-script, s, se, search, set, shrinkwrap, star,
stars, start, stop, t, team, test, token, tst, un,
uninstall, unpublish, unstar, up, update, v, version, view,
whoami
npm <command> -h quick help on <command>
npm -l display full usage info
npm help <term> search for help on <term>
npm help npm involved overview
Specify configs in the ini-formatted file: C:\Users\Sam\.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
npm@6.10.3 C:\Users\Sam\AppData\Roaming\npm\node_modules\npm
-d
是 --loglevel info
的快捷方式。
您可以在此页面上找到信息https://github.com/npm/cli/blob/latest/doc/misc/npm-config.md#shorthands-and-other-cli-niceties
我认为选项“-depth=0”也可以作为“-d=0”完成并且已经执行了。但结果不是我所期望的。我已经搜索了很长时间以查看我刚刚做了什么,但没有任何线索。该命令是什么意思?
C:\Users\Sam>npm ls -g -d=0
npm info it worked if it ends with ok
npm info using npm@6.10.3
npm info using node@v10.15.1
C:\Users\Sam\AppData\Roaming\npm
`-- (empty)
npm timing npm Completed in 1821ms
npm info ok
C:\Users\Sam>npm -d -h
npm info it worked if it ends with ok
npm info using npm@6.10.3
npm info using node@v10.15.1
Usage: npm <command>
where <command> is one of:
access, adduser, audit, bin, bugs, c, cache, ci, cit,
clean-install, clean-install-test, completion, config,
create, ddp, dedupe, deprecate, dist-tag, docs, doctor,
edit, explore, get, help, help-search, hook, i, init,
install, install-ci-test, install-test, it, link, list, ln,
login, logout, ls, org, outdated, owner, pack, ping, prefix,
profile, prune, publish, rb, rebuild, repo, restart, root,
run, run-script, s, se, search, set, shrinkwrap, star,
stars, start, stop, t, team, test, token, tst, un,
uninstall, unpublish, unstar, up, update, v, version, view,
whoami
npm <command> -h quick help on <command>
npm -l display full usage info
npm help <term> search for help on <term>
npm help npm involved overview
Specify configs in the ini-formatted file: C:\Users\Sam\.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
npm@6.10.3 C:\Users\Sam\AppData\Roaming\npm\node_modules\npm
-d
是 --loglevel info
的快捷方式。
您可以在此页面上找到信息https://github.com/npm/cli/blob/latest/doc/misc/npm-config.md#shorthands-and-other-cli-niceties