Visual Studio Code运行React Native报错
程序员文章站
2022-07-14 15:57:36
...
React Native:0.27.2
React:15.1.0
Node:6.1.0
npm:3.8.6
Visual Studio Code:1.2.0
运行后报错如下:
######### Attempting to start the React Native packager ##########
######### Starting Packager ##########
######### Executing command: react-native start --port 8081 ##########
[Error : 0105] Failed to run the application in iOS: spawn react-native ENOENT
解决办法:
终端中检查react-native命令的安装目录:which react-native
(1)如果已经安装,设置环境变量即可
(2)如果没有安装,全局安装react-native-cli即可
推荐阅读
-
如何在Mac系统使用Visual Studio Code运行Python
-
解决 React-Native mac 运行报错 error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build log
-
react native 运行报错:Error: Command failed: gradlew.bat installDebug
-
Visual Studio Code运行React Native报错
-
Visual Studio Code运行React Native报错
-
转载:Visual Studio Code (vscode) 配置C、C++环境/编写运行C、C++(Windows)
-
编译运行 react native 项目报错:Project with path ':react-native-picker' could not be found in project ':app'
-
visual studio code 安装 PHP IntelliSense 报错
-
如何在Mac系统使用Visual Studio Code运行Python
-
解决 React-Native mac 运行报错 error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build log