Я новичок в node.js и nvm.
Моя система - Ubuntu19.10
моя команда nvm install v10.9.0
журнал, который я получил:
Downloading and installing node v10.9.0...
Downloading https://nodejs.org/dist/v10.9.0/node-v10.9.0-linux-x64.tar.xz...
######################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v10.9.0 (npm v6.2.0)
(Python3.6) appleyuchi@Desktop:~$ npm
Usage: npm <command>
where <command> is one of:
access, adduser, audit, bin, bugs, c, cache, ci, cit,
completion, config, create, ddp, dedupe, deprecate,
dist-tag, docs, doctor, edit, explore, get, help,
help-search, hook, i, init, install, install-test, it, link,
list, ln, login, logout, ls, 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:
/home/appleyuchi/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
npm@6.2.0 /home/appleyuchi/.nvm/versions/node/v10.9.0/lib/node_modules/npm
取消 (核心已傾印)
значение последней строки:
Отменено (ядро выгружено)
или
Отменено (ядро перепечатано)
извиняюсь за это, я действительно не знаю, какой из них намного точнее.
#
Я также пытался обновить npm для node.js (v10.9.0) под nvm с помощью команды npm install npm
(Python3.6) appleyuchi@Desktop:~$ npm install npm
npm WARN appleyuchi@1.0.0 No description
npm WARN appleyuchi@1.0.0 No repository field.
+ npm@6.14.5
added 435 packages from 873 contributors in 5.919s
取消 (核心已傾印)
(Python3.6) appleyuchi@Desktop:~$ npm
Usage: npm <command>
where <command> is one of:
access, adduser, audit, bin, bugs, c, cache, ci, cit,
completion, config, create, ddp, dedupe, deprecate,
dist-tag, docs, doctor, edit, explore, get, help,
help-search, hook, i, init, install, install-test, it, link,
list, ln, login, logout, ls, 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:
/home/appleyuchi/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
npm@6.2.0 /home/appleyuchi/.nvm/versions/node/v10.9.0/lib/node_modules/npm
取消 (核心已傾印)