thabti / react-native-css

Style React-Native components with css
MIT License
769 stars 66 forks source link

bash: react-native-css: command not found #19

Closed youngwind closed 8 years ago

youngwind commented 8 years ago

I have a problem. I install react-native-css through npm successfully,

2015-12-27 10 48 00

but when I run "react-native-css" in terminal, it console a mistake as this.

bash: react-native-css: command not found

I can't figure it out.

thabti commented 8 years ago

@youngwind you will need to install it globally:

npm install -g react-native-css

or my preference run it from the bin folder:

node_module/.bin/react-native-css

Let me know if you still have issues.

youngwind commented 8 years ago

@sabeurthabti it works!! thanks! wheather it is because my react-native-cli was installed globally? react-native-css need to be consistent ?

however,when i run this command

react-native-css -i ./pages/index-style.scss -o ./pages/index-style.js --w

it can't watch my scss file's change and recompile automatically,i can't find the reason. I have checked it many times.

2015-12-27 11 20 31
thabti commented 8 years ago

@youngwind I will investigate that, happy to accept pull requests.

thabti commented 8 years ago

@youngwind fixed in the latest version. There was an issue, thank you letting me know.