Skip to content

[rnpm] unable to link a @author/modulename module #8623

Closed

Description

@ElvisChiang

react-native 0.29
MacOS / bash
using module: @remobile/react-native-toast

I tried to installed @remobile/react-native-toast first

npm install @remobile/react-native-toast --save

which package.json would look like

  "dependencies": {
     "@remobile/react-native-toast": "^1.0.4",

I tried

$ react-native link react-native-toast
{ [Error: Cannot find module '/Users/elvis/work/tool/node_modules/react-native-toast/package.json'] code: 'MODULE_NOT_FOUND' }
$ react-native link \@remobile/react-native-toast
{ [Error: Cannot find module '/Users/elvis/work/tool/node_modules/@remobile/package.json'] code: 'MODULE_NOT_FOUND' }

the path should be

node_modules/@remobile/react-native-toast/package.json

Activity

  1. satya164 commented on Jul 7, 2016

    @satya164
    Contributor
  2. Kureev commented on Jul 7, 2016

    @Kureev
    Contributor

    We have exactly the same issue here https://github.com/rnpm/rnpm/issues/182. Let's mark this thread as a "main" for this discussion.

  3. self-assigned this
    on Jul 7, 2016
  4. Kureev commented on Jul 11, 2016

    @Kureev
    Contributor

    Can somebody give me an access to scoped npm package with RN module inside? Otherwise, I'm unable to test a potential fix.

  5. satya164 commented on Jul 11, 2016

    @satya164
    Contributor

    @Kureev what about the example in the issue?

    npm install @remobile/react-native-toast
  6. Kureev commented on Jul 11, 2016

    @Kureev
    Contributor

    Oh, I was sure it's private. My bad. I'll debug on this one 👍

  7. Kureev commented on Jul 13, 2016

    @Kureev
    Contributor

    Quick update: I'll do my best to investigate it before this weekend.

  8. rturk commented on Jul 13, 2016

    @rturk

    I'm having the same issue with "@exponent/react-native-action-sheet": "^0.2.0"
    How to reproduce:

    1. Use RN29.1
    2. npm @exponent/react-native-action-sheet --save
    3. run react-native link
  9. ghost added a commit that references this issue on Aug 1, 2016
  10. Kureev commented on Aug 1, 2016

    @Kureev
    Contributor

    #9118 has been merged, so I assume this issue to be fixed in next release

  11. Kureev commented on Aug 1, 2016

    @Kureev
    Contributor
  12. ghost closed this as completedon Aug 1, 2016
  13. ghost added
    Ran CommandsOne of our bots successfully processed a command.
    on Aug 1, 2016
  14. added a commit that references this issue on Aug 3, 2016
  15. added a commit that references this issue on Aug 5, 2016
  16. locked as resolved and limited conversation to collaborators on May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.Type: EnhancementA new feature or enhancement of an existing feature.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions