react-native如何指定版本 0.22.2?
来源:
poooocket
2016-09-24
package.json配置文件:
{
"name": "imoocApp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start"
},
"dependencies": {
"react": "15.3.2",
"react-native": "^0.34.0"
}
}
react 版本默认安装了最新的版本 react-native: 0.34.0
如何指定版本。
abudeMac-mini:imoocApp Adrain$ react-native -v
react-native-cli: 0.1.10
react-native: 0.34.0
写回答
1回答
-
把 node_modules 里面的 react-native 和 react 删了
然后在这个项目里,重新 npm install react-native@0.22.2 react@0.14.8 --save
012016-09-24
相似问题