Skip to content

npm_module config gets required from /Users/node_modules instead of ./node_modules #3975

Description

@peveloper

When requiring config :

var config = require('config');

which is included in package.json as:

{
  "name": "sample",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "react-native start"
  },
  "dependencies": {
    "react-native": "^0.14.0",
    "config": "^1.16.0"
  }
}

apparently react-native is searching in the wrong folder:

Unable to resolve module config from /Users/user/Documents/dev/AwesomeProject/index.ios.js: Invalid directory /Users/node_modules/config

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions