ui icon indicating copy to clipboard operation
ui copied to clipboard

Error saving ui-module

Open swe-jack opened this issue 10 years ago • 16 comments

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 [email protected]: This package is deprecated. Use Object.assign.

> @shoutem/[email protected] 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/[email protected] postinstall: `react-native link`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @shoutem/[email protected] 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

swe-jack avatar Oct 04 '16 21:10 swe-jack

You have to instal react-native-cli

npm install -g react-native-cli

SoHotSoup avatar Oct 05 '16 07:10 SoHotSoup

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

swe-jack avatar Oct 05 '16 07:10 swe-jack

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?

SoHotSoup avatar Oct 05 '16 07:10 SoHotSoup

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?)

swe-jack avatar Oct 05 '16 07:10 swe-jack

@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?

SoHotSoup avatar Oct 05 '16 07:10 SoHotSoup

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

swe-jack avatar Oct 05 '16 08:10 swe-jack

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!

SoHotSoup avatar Oct 05 '16 08:10 SoHotSoup

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!

swe-jack avatar Oct 05 '16 08:10 swe-jack

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

swe-jack avatar Oct 05 '16 08:10 swe-jack

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.

putuyoga avatar Oct 07 '16 02:10 putuyoga

+1 @putuyoga

ufon avatar Oct 10 '16 18:10 ufon

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

ufon avatar Oct 10 '16 18:10 ufon

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

swe-jack avatar Oct 11 '16 07:10 swe-jack

you saved my hour @ufon 👍

anhnt avatar Oct 12 '16 15:10 anhnt

#86

SoHotSoup avatar Nov 14 '16 12:11 SoHotSoup

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

rockus123 avatar Jul 06 '17 09:07 rockus123