簡體   English   中英

VS2017無法識別命令npm ci

[英]VS2017 not able to identify the command npm ci

節點版本:8.11.3

我檢查了一個解決方案。 它包括 package-lock.json。 所以,我試圖在實例上運行npm ci

不幸的是,它不起作用。 我收到消息:

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

請幫助我理解我做錯了什么。

看起來您的 node/npm 版本可能太舊,無法支持 npm ci。

我相信“npm ci”是在 npm v6.x 中引入的,而您的 npm 版本是 5.6

npm@5.6.0 C:\Program Files\nodejs\node_modules\npm

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM