"npm init -y "抱怨并问我是不是指 "npm init"

问题描述 投票:-1回答: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, fund, 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\Saif\.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

[email protected] D:\NODEJS\node_modules\npm

Did you mean this?
    init

我已经运行了以下命令 npx create-react-app exercise-tracker(name of my app) 运转前 npm init -y

node.js reactjs
1个回答
0
投票

没有必要运行 npm init 运行后 npx create-react-app exercise-tracker 命令,这是因为npx的一部分包括创建package.json文件和安装依赖项。这是因为npx的一部分包括创建package.json文件和安装依赖关系。

© www.soinside.com 2019 - 2024. All rights reserved.