npm <command>
Usage:
npm install install all the dependencies in your project
npm install <foo> add the <foo> dependency to your project
npm test run this project's tests
npm run <foo> run the script named <foo>
npm <command> -h quick help on <command>
npm -l display usage info for all commands
npm help <term> search for help on <term>
npm help npm more involved overview
All commands:
access, adduser, audit, bin, bugs, cache, ci, completion,
config, dedupe, deprecate, diff, dist-tag, docs, doctor,
edit, exec, explain, explore, find-dupes, fund, get, help,
hook, init, install, install-ci-test, install-test, link,
ll, login, logout, ls, org, outdated, owner, pack, ping,
pkg, prefix, profile, prune, publish, rebuild, repo,
restart, root, run-script, search, set, set-script,
shrinkwrap, star, stars, start, stop, team, test, token,
uninstall, unpublish, unstar, update, version, view, whoami
Specify configs in the ini-formatted file:
/Users/peter.lam/.npmrc
or on the command line via: npm <command> --key=value
More configuration info: npm help config
Configuration fields: npm help 7 config
npm@8.11.0 /usr/local/lib/node_modules/npm
4条答案
按热度按时间taor4pac1#
是否正确安装了npm?
请检查命令行中的npm
版本应出现
nwlqm0z12#
很可能您没有用单引号将文件名括起来
根据您的命令,您需要键入:npx create-react-app 'hello-world'这将在名为'trail'的文件夹中创建名为hello-world的react应用程序,如果要在trail文件夹中创建react应用程序,则应给予下面提到的命令'npx create-react-app。'
h79rfbju3#
请阅读文档并尝试按照本文档中提供的步骤操作
React Native Create App
1 -安装 NodeJS
2 -使用
node -v
检查节点版本,如果返回任何版本,则 NodeJS 安装正确3 -然后尝试通过以下命令创建react js应用程序
ufj5ltwl4#
这是
如果您想使用 typescript 模板,那么