[英]EACCESS Permission error while creating react app in Mac OS X
我在创建 react 应用程序时收到以下警告,在创建项目后,我无法将 js 文件添加到 src 文件夹中我在 vscode 中获得 EACCESS
naseefali@NASEEFs-MacBook-Pro 反应 % sudo create-react-app react-erp
在 /Users/naseefali/react/react-erp 中创建一个新的 React 应用程序。
安装软件包。 这可能需要几分钟。 使用 cra-template 安装 react、react-dom 和 react-scripts...
fsevents@1.2.13 install /Users/naseefali/react/react-erp/node_modules/watchpack-chokidar2/node_modules/fsevents node install.js
gyp ERR:配置错误 gyp ERR:堆栈错误,EACCES。 没有权限。 mkdir '/Users/naseefali/react/react-erp/node_modules/watchpack-chokidar2/node_modules/fsevents/build' gyp ERR。 系统达尔文 19.4.0 gyp ERR。 命令“/usr/local/bin/node”“/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js”“重建”gyp ERR! cwd /Users/naseefali/react/react-erp/node_modules/watchpack-chokidar2/node_modules/fsevents gyp ERR! 节点 -v v14.16.0 gyp 错误! 节点-gyp -v v5.1.0 gyp 错误! 不好
fsevents@1.2.13 install /Users/naseefali/react/react-erp/node_modules/webpack-dev-server/node_modules/fsevents node install.js
gyp ERR:配置错误 gyp ERR:堆栈错误,EACCES。 没有权限。 mkdir '/Users/naseefali/react/react-erp/node_modules/webpack-dev-server/node_modules/fsevents/build' gyp ERR。 系统达尔文 19.4.0 gyp ERR。 命令“/usr/local/bin/node”“/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js”“重建”gyp ERR! cwd /Users/naseefali/react/react-erp/node_modules/webpack-dev-server/node_modules/fsevents gyp ERR! 节点 -v v14.16.0 gyp 错误! 节点-gyp -v v5.1.0 gyp 错误! 不好
你只是想运行create-react-app
吗? 您可能不需要 sudo no? 如果你安装了节点,你可以运行npx create-react-app my-app
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.