【问题标题】:Why I am getting Error while starting with React?为什么我在开始使用 React 时遇到错误?
【发布时间】:2021-03-10 00:00:27
【问题描述】:

我是 React 新手,我已经安装了 node 和 npm。现在,在终端内,我正在写npx-start create-react-app music-player。但我收到错误

错误:EPERM:不允许操作

我使用的是 Windows 10。我在下面放了 vscode 的图片。 提前致谢。

【问题讨论】:

标签: node.js npm create-react-app npx


【解决方案1】:

NPX

npx create-react-app my-app

(npx 随附于 npm 5.2+ 及更高版本,请参阅旧 npm 版本的说明)

NPM

nPm init react-app my-app

npm init 在 npm 6+ 中可用

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-19
    • 1970-01-01
    • 1970-01-01
    • 2020-05-08
    相关资源
    最近更新 更多