Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error saving ui-module #62

Closed
jackbillstrom opened this issue Oct 4, 2016 · 16 comments
Closed

Error saving ui-module #62

jackbillstrom opened this issue Oct 4, 2016 · 16 comments
Milestone

Comments

@jackbillstrom
Copy link

Hi, with the /cli module failing I was trying to accomplish some testing with the UI-module atleast, I've setup all the dependencies and when I'm running npm i -S @shoutem/ui I get this error....

npm WARN deprecated lodash.assign@4.2.0: This package is deprecated. Use Object.assign.

> @shoutem/ui@0.9.1 postinstall C:\Users\jb\Documents\Appar\Bira\node_modules\@shoutem\ui
> react-native link

Looks like you installed react-native globally, maybe you meant react-native-cli?
To fix the issue, run:
npm uninstall -g react-native
npm install -g react-native-cli
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\nodejs\\node.exe" "C:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "-S" "@shoutem/ui"
npm ERR! node v6.7.0
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE

npm ERR! @shoutem/ui@0.9.1 postinstall: `react-native link`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @shoutem/ui@0.9.1 postinstall script 'react-native link'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the @shoutem/ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     react-native link
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs @shoutem/ui
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls @shoutem/ui
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\jb\Documents\Appar\Bira\npm-debug.log

Npm version: 3.10.3
Node version: v6.7.0
OS: Windows

@SoHotSoup
Copy link
Contributor

You have to instal react-native-cli

npm install -g react-native-cli

@jackbillstrom
Copy link
Author

jackbillstrom commented Oct 5, 2016

Already did, followed "To fix the issue, run:" @SoHotSoup

@SoHotSoup
Copy link
Contributor

Ok, have you tried to install @shoutem/ui again? Does it pass now?
It seems to me that it would be enough to run react-native link from your projects' root folder

Could you try build your app and confirm that everything works now?

@jackbillstrom
Copy link
Author

Same error even though I have the react-native-cli and uninstalled the react-native. FYI am I unable to install your @shoutem/cli (Does not exist on npm?)

@SoHotSoup
Copy link
Contributor

@shoutem/cli is not public yet, it would be when we release Extensions, public beta is coming soon, we'll let you know when is available.

@jackbillstrom In order to fix the error, have you tried just to run react-native link within your project? Also, could I ask you, to write your react native version here?

@jackbillstrom
Copy link
Author

Yeah, I did run react-native linkwithin my RN project but no success or output.

This is my versions:

react-native-cli: 1.0.0
react-native: 0.34.1

@SoHotSoup
Copy link
Contributor

Ok, I'll test it later and report you. It seems to me that this is something introduced in new RN version because it normally passes with RN0.33.0

Thank you!

@jackbillstrom
Copy link
Author

I see, well I'm looking forward to your answer. In the "worst" case I just try to downgrade RN down to 33.0. Cheers!

@jackbillstrom
Copy link
Author

@SoHotSoup Actually tried with an project using RN 0.33.0, still no luck so you know!

@putuyoga
Copy link

putuyoga commented Oct 7, 2016

i have same issue with this one @SoHotSoup , however the old version shoutem/ui seems fine (0.8.5 version). I don't know what is wrong. Already uninstalled the react-native and install react-native-cli globally. It failed at postscript installation.

@ufon
Copy link

ufon commented Oct 10, 2016

+1 @putuyoga

@ufon
Copy link

ufon commented Oct 10, 2016

solution:
npm install --save @shoutem/ui --ignore-scripts
after that:
react-native link
but i'm not sure maybe this script are important
"test": "mocha -R spec --require test-utils/setup.js --require react-native-mock/mock.js --compilers js:babel-core/register $(find . -name '*.spec.js' ! -ipath '*node_modules*')",

but all work's fine

@jackbillstrom
Copy link
Author

Why didn't I thought of it....cheers mate!

@anhnt
Copy link

anhnt commented Oct 12, 2016

you saved my hour @ufon 👍

@SoHotSoup
Copy link
Contributor

#86

@rockus123
Copy link

Why so hard even during installation? Programmers should make things like these simple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants