How do you install node packages?

Hey there! I’ve just started using play.js, and I’ve wanted to add some dependencies for an RN project.

I’ve read that you can just add dependencies into your package.json, however, it doesn’t seem to download them.
Here’s what my package.json looks like.

{
  "name": "initiative",
  "version": "0.0.2",
  "private": true,
  "dependencies": {
      "droll": "^0.2.1"
  }
}

I get this error:

How do I go about this? I’m really excited to use my iPad for some RN development. Thanks!

Hi @recon :wave:

Unfortunately, React Native projects don’t support npm dependencies as the big majority include native code that wouldn’t work due to system limitations.

Sorry for the inconvenience.

So you have to manually import pure JS libraries?

For React Native projects I recommend processing your JS dependencies with Browserify and then importing the resulting file into your React Native project.