如何解决npm start,浏览器没有出现
所以我在“git Bash”终端上工作。 我运行(在我为此制作的文件夹内)“npm install” 然后“npm start”,我得到了这个:
$ npm start
> start
> expo start
WARNING: expo-cli has not yet been tested against Node.js v16.1.0.
If you encounter any issues,please report them to https://github.com/expo/expo-cli/issues
expo-cli supports following Node.js versions:
* >=12.13.0 <13.0.0 (Maintenance LTS)
* >=14.0.0 <15.0.0 (Active LTS)
* >=15.0.0 <17.0.0 (Current Release)
┌─────────────────────────────────────────────────────────────────────────┐
│ │
│ There is a new version of expo-cli available (4.7.2). │
│ You are currently using expo-cli 4.4.8 │
│ Install expo-cli globally using the package manager of your choice; │
│ for example: `npm install -g expo-cli` to get the latest version │
│ │
└─────────────────────────────────────────────────────────────────────────┘
[12:03:05] Starting project at D:\Programacion\TheCodepulse\rn-starter
[12:03:05] Developer tools running on http://localhost:19002
[12:03:06] Some dependencies are incompatible with the installed expo package version:
[12:03:06] - @react-native-community/masked-view - expected version: 0.1.5 - actual version installed: 0.1.11
[12:03:06] Your project may not work correctly until you install the correct versions of the packages.
To install the correct versions of these packages,please run: expo install [package-name ...]
[12:03:10] Starting Metro Bundler
[12:03:10]
[12:03:10] Your native app is running at exp://192.168.1.48:19000
Logs for your project will appear below. Press Ctrl+C to exit.
那里我得到了二维码,我没有收到任何错误。但浏览器应该显示出来,但它没有。 这是我的“package.json”的样子:
{
"main": "node_modules/expo/AppEntry.js","scripts": {
"start": "expo start","android": "expo start --android","ios": "expo start --ios","web": "expo start --web","eject": "expo eject"
},"dependencies": {
"@react-native-community/masked-view": "^0.1.5","expo": "~36.0.0","react": "~16.9.0","react-dom": "~16.9.0","react-native": "https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz","react-native-gesture-handler": "~1.5.0","react-native-reanimated": "~1.4.0","react-native-safe-area-context": "0.6.0","react-native-screens": "2.0.0-alpha.12","react-navigation": "^4.1.0","react-navigation-stack": "^2.0.16"
},"devDependencies": {
"@babel/core": "^7.0.0","babel-preset-expo": "~8.0.0","cross-env": "^7.0.3"
},"private": true
}
编辑:好的,我发现它适用于“纱线开始”,但我仍然不明白为什么......
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。