npm ERR! Could not install from "..." as it does not contain a package.json file.

react native 项目npm install 的时候报错:

npm ERR! Could not install from "node_modules/teaset/react-native-deprecated-custom-components@github:facebookarchive/react-native-custom-components#d5201e53221a2460b096ee82ff4480f3b0de7fe4" as it does not contain a package.json file.

各种百度无效

后来解决思路是先git检出安装teaset组件之前的commit,然后再分别npm install --save teaset 及之后安装的组件,然后再git pull origin master 之后的代码,再 npm start -- --reset-cache 跑起来就可以了

你可能感兴趣的:(React,Native)