App.js: 找不到模块 'node-releases/data/processed/envs.json'
App.js: Cannot find module 'node-releases/data/processed/envs.json'
我该如何解决这个问题?我安装了反应导航,这发生了。我遵循了 link - https://reactnavigation.org/docs/hello-react-navigation 中的说明。我很困惑如何搜索来解决这个问题。
import React, { Component } from 'react'
import { Text, StyleSheet, View, Image, TextInput, ScrollView, Button, TouchableOpacity } from 'react-native'
import GoBanner from './src/component/molecul/GoBanner'
import GoInfo from './src/component/molecul/GoInfo'
import GoNews from './src/component/molecul/GoNews'
import MainFeatures from './src/container/organism/MainFeature'
import SearchBar from './src/component/molecul/SearchBar'
import ScrollableProduct from './src/container/organism/ScrollableProduct'
import NavBar from './src/container/organism/NavBar'
import GoPay from './src/container/organism/GoPay'
export default class App extends Component {
render() {
return (
<View style={{ flex: 1 }}>
<ScrollView style={{ flex: 1, backgroundColor: 'white' }}>
{/* Search Bar */}
<SearchBar />
{/* Gopay */}
<GoPay />
{/* Main Feature */}
<MainFeatures />
<View style={{ height: 17, backgroundColor: '#F2F2F4', marginTop: 20 }}></View>
{/* News Section */}
<GoNews />
{/* Internal Information Section */}
<GoInfo />
{/* Gofood Banner Section */}
<GoBanner />
{/* Nearby Restaurant */}
<ScrollableProduct />
</ScrollView >
<NavBar />
</View >
)
}
}
const styles = StyleSheet.create({})
尝试安装这个包npm install --save node-releases
我该如何解决这个问题?我安装了反应导航,这发生了。我遵循了 link - https://reactnavigation.org/docs/hello-react-navigation 中的说明。我很困惑如何搜索来解决这个问题。
import React, { Component } from 'react'
import { Text, StyleSheet, View, Image, TextInput, ScrollView, Button, TouchableOpacity } from 'react-native'
import GoBanner from './src/component/molecul/GoBanner'
import GoInfo from './src/component/molecul/GoInfo'
import GoNews from './src/component/molecul/GoNews'
import MainFeatures from './src/container/organism/MainFeature'
import SearchBar from './src/component/molecul/SearchBar'
import ScrollableProduct from './src/container/organism/ScrollableProduct'
import NavBar from './src/container/organism/NavBar'
import GoPay from './src/container/organism/GoPay'
export default class App extends Component {
render() {
return (
<View style={{ flex: 1 }}>
<ScrollView style={{ flex: 1, backgroundColor: 'white' }}>
{/* Search Bar */}
<SearchBar />
{/* Gopay */}
<GoPay />
{/* Main Feature */}
<MainFeatures />
<View style={{ height: 17, backgroundColor: '#F2F2F4', marginTop: 20 }}></View>
{/* News Section */}
<GoNews />
{/* Internal Information Section */}
<GoInfo />
{/* Gofood Banner Section */}
<GoBanner />
{/* Nearby Restaurant */}
<ScrollableProduct />
</ScrollView >
<NavBar />
</View >
)
}
}
const styles = StyleSheet.create({})
尝试安装这个包npm install --save node-releases