[英]VS2017 not able to identify the command npm ci
Node version: 8.11.3节点版本:8.11.3
I checked out a solution.我检查了一个解决方案。 It includes package-lock.json.
它包括 package-lock.json。 So, I am trying to run
npm ci
on the instance.所以,我试图在实例上运行
npm ci
。
Unfortunately, it is not working.不幸的是,它不起作用。 I am getting the message:
我收到消息:
Usage: npm <command>
where <command> is one of:
access, adduser, bin, bugs, c, cache, completion, config,
ddp, dedupe, deprecate, dist-tag, docs, doctor, edit,
explore, get, help, help-search, 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:
C:\Users\abhishek.kumar\.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
npm@5.6.0 C:\Program Files\nodejs\node_modules\npm
Did you mean one of these?
c
I
Please help me to understand what I am doing wrong.请帮助我理解我做错了什么。
It looks like your version of node/npm might be too old to support npm ci.看起来您的 node/npm 版本可能太旧,无法支持 npm ci。
I believe 'npm ci' was introduced in npm v6.x, whereas your npm version is 5.6我相信“npm ci”是在 npm v6.x 中引入的,而您的 npm 版本是 5.6
npm@5.6.0 C:\Program Files\nodejs\node_modules\npm
npm@5.6.0 C:\Program Files\nodejs\node_modules\npm
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.