reactjs - 在反应中创建应用程序时出错
问题描述
我卸载了 Visual Studio 代码和节点 js。重新启动机器。再次安装了visual studio和node js。但问题就在那里。
PS D:\React> npm create-react-app myapp
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\ee209495\.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
npm@6.14.9 C:\Program Files\nodejs\node_modules\npm
解决方案
您以前安装过 create-reat-app 吗?
npm install -g create-react-app
此外,您可以使用 npx 所以它将使用最新的 npm 版本
npx create-react-app my-app
推荐阅读
- c# - 时间:2019-05-10 标签:c#firestore setup on mac running parallels
- gis - 如何正确地将 GIS shapefile 转换为道路网络?
- python - 星号 * 作为函数/类/方法签名中的第一个参数是什么意思?
- python - python以不同形式打印向量
- operating-system - 如果前一个进程使用 DMA 切换到新进程时操作系统和 DMA 会做什么
- python - 出现错误 403:尽管使用了标头,但仍被禁止。可能出了什么问题?
- javascript - 点击缩略图和滑块的图像预览:如何使点击和滑动协同工作?
- debugging - 有没有办法用它在 vscode 中编译的 asm 来单步执行 Rust 代码?
- javascript - 控制台中的困惑或如何通过查看项目是否为未定义的数据类型或未定义的字符串来查找,Google 是否应该改进字符串控制台?
- flutter - 单击 Navigator.pop() 时出现黑屏