RealOrangeOne / react-native-mock

A fully mocked and test-friendly version of react native (maintainers wanted)
MIT License
570 stars 153 forks source link

not able to install from npm #144

Closed rnagulapalle closed 6 years ago

rnagulapalle commented 6 years ago

i am trying to install but it keeps returning 404

npm ERR! code E404
npm ERR! 404 Not Found: @jonny/react-native-mock@~0.4.1

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/rnagulapalle/.npm/_logs/2017-09-26T07_56_13_221Z-debug.log
LM-SJN-00877623:driver-android rnagulapalle$ 

package.json


    "@jonny/react-native-mock": "~0.4.1",```
RealOrangeOne commented 6 years ago

This doesnt look like you're installing my package. The official package is at react-native-mock rather than @jonny/react-native-mock. Are you intentionally trying to install a fork?

rnagulapalle commented 6 years ago

Official one is not working with 0.48.4 react native version. And also it's missing build folder where mock.js requires. So having issues running jest

On Tue, Sep 26, 2017 at 2:57 AM Jake Howard notifications@github.com wrote:

This doesnt look like you're installing my package. The official package is at react-native-mock rather than @jonny/react-native-mock. Are you intentionally trying to install a fork?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RealOrangeOne/react-native-mock/issues/144#issuecomment-332148929, or mute the thread https://github.com/notifications/unsubscribe-auth/AFwWsFgvNmbBcysB5tf5AHl-UUnVjncYks5smMqhgaJpZM4Pj0xU .

-- Thanks, -Raj

RealOrangeOne commented 6 years ago

This error looks like you're looking for the wrong fork. The official one works (not necessarily with that version of react-native), and has the required build directory. This issue is likely because youre trying the wrong package name of the fork, this isn't to do with this project, or even this repo

rnagulapalle commented 6 years ago

Thank you and is your official library works with 0.48.4 RN version. I see there is lot of dependencies missing.

rnagulapalle commented 6 years ago

Sorry to bother you guys but npm view gives me only 0.3.1 LM-SJN-00877623:driver-android rnagulapalle$ npm view react-native-mock

{ name: 'react-native-mock', description: 'A fully mocked and test-friendly version of react native', 'dist-tags': { latest: '0.3.1' }, versions: [ '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.1.0', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1' ], maintainers: [ 'intelligibabble leland.m.richardson@gmail.com', 'theorangeone jake@theorangeone.net' ], time: { modified: '2017-02-03T19:52:04.086Z', created: '2016-01-31T19:13:49.165Z', '0.0.1': '2016-01-31T19:13:49.165Z', '0.0.2': '2016-02-03T04:01:27.275Z', '0.0.3': '2016-02-03T04:06:53.409Z', '0.0.4': '2016-02-07T01:59:41.094Z', '0.0.5': '2016-02-07T03:05:27.546Z', '0.0.6': '2016-02-15T17:11:33.219Z', '0.0.7': '2016-03-16T16:13:32.983Z', '0.1.0': '2016-05-10T03:16:59.030Z', '0.2.0': '2016-05-22T16:50:29.991Z', '0.2.1': '2016-05-26T08:20:55.549Z', '0.2.2': '2016-05-26T09:29:44.958Z', '0.2.3': '2016-06-07T06:12:32.846Z', '0.2.4': '2016-06-30T08:18:50.956Z', '0.2.5': '2016-07-20T23:13:23.145Z', '0.2.6': '2016-08-18T09:45:13.922Z', '0.2.7': '2016-10-07T09:41:36.427Z', '0.2.8': '2016-11-20T21:04:44.894Z', '0.2.9': '2016-11-28T17:27:35.705Z', '0.3.0': '2017-02-03T14:36:57.982Z', '0.3.1': '2017-02-03T19:52:04.086Z' }, homepage: 'https://github.com/RealOrangeOne/react-native-mock#readme', keywords: [ 'react', 'react-native', 'mock', 'testing' ], repository: { type: 'git', url: 'git+https://github.com/RealOrangeOne/react-native-mock.git' }, author: 'Jake Howard git@theorangeone.net', bugs: { url: 'https://github.com/RealOrangeOne/react-native-mock/issues' }, license: 'MIT', readmeFilename: 'README.md', version: '0.3.1', main: 'build/react-native.js', scripts: { prepublish: 'npm run build', test: 'npm run lint && npm run mocha', mocha: 'mocha --require babel-core/register \'test/*/.js\'', 'mocha:watch': 'npm run test -- --watch', build: 'rm -rf build/ && babel src --out-dir build', lint: 'eslint \'src/\' \'test/\' \'mock.js\'' }, devDependencies: { 'babel-cli': '6.9.0', 'babel-core': '6.9.0', 'babel-eslint': '6.0.4', 'babel-preset-airbnb': '2.0.0', 'babel-preset-react-native': '1.8.0', chai: '3.5.0', eslint: '2.10.2', 'eslint-config-airbnb': '9.0.1', 'eslint-plugin-import': '1.8.0', 'eslint-plugin-jsx-a11y': '1.2.2', 'eslint-plugin-react': '5.1.1', 'eslint-plugin-react-native': '1.0.2', mocha: '2.5.3', react: '^15.4.0', 'react-native': '^0.38.0' }, dependencies: { 'cubic-bezier': '^0.1.2', invariant: '^2.2.1', keymirror: '^0.1.1', raf: '^3.2.0', 'react-addons-create-fragment': '^15.4.0', 'react-addons-perf': '^15.4.0', 'react-addons-pure-render-mixin': '^15.4.0', 'react-addons-test-utils': '^15.4.0', 'react-addons-update': '^15.4.0', 'react-dom': '^15.4.0', 'react-timer-mixin': '^0.13.3', warning: '^2.1.0' }, peerDependencies: { react: '', 'react-native': '' }, gitHead: '1d76e05a9c8a647ff44eea57b1024a99ba9e4c4f', dist: { shasum: '13d22433c5351a8a7fb8aedd7862b614d087851c', tarball: 'https://registry.npmjs.org/react-native-mock/-/react-native-mock-0.3.1.tgz' }, directories: {} }

RealOrangeOne commented 6 years ago

Yes, this is correct. The latest version is 0.3.1. See the package.json for proof. Again, you're getting the version number from an unofficial fork