Я нахожусь на узле Amazon EC2 (стебель эластичного боба), если я бегу npm
, я получаю:
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:
/home/ec2-user/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
npm@6.11.3 /home/ec2-user/.nvm/versions/node/v12.11.1/lib/node_modules/npm
Но если я бегу sudo npm
, я получаю:
sudo: npm: command not found
Мне нужно использовать sudo
, чтобы скрипт работал.