2017-01-09 56 views
1

我想在我的react-native應用程序中使用堆棧。 我所做的:react-native鏈接堆棧錯誤

npm install react-native-firestack --save

但後來當我試圖鏈接:

react-native link react-native-firestack

我得到的錯誤:

rnpm-install ERR! It seems something went wrong while linking. Error: spawn UNKNOWN

你有任何想法,這是爲什麼?

+0

閱讀'https:// github.com/fullstackreact/react-native-firestack'文檔的android部分。 –

回答

1

按我的理解試試這個:

首先使用rnpm link react-native-firestack

,如果它不工作,然後試試這個:

"rnpm": { 
    "commands": { 
     "prelink": "node_modules/react-native-lock/bin/prepare.sh", 
     "postlink": "node_modules/react-native-lock/bin/cocoapods.sh" 
    } 
    } 

您可以從的package.json刪除這些行