Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

[Error: Can't find npm module 'react/package.json'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package?]

Please I need to understand what I must do to take care of this problem

"[Error: Can't find npm module 'react/package.json'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package?]" I kept having as I try to develop app in meteor with react.

I really do not know what triggers the error.

Thanks for your anticipated assistance.

like image 439
Aika Avatar asked May 18 '16 14:05

Aika


People also ask

Can't find module after NPM install?

To fix the Cannot find module error, simply install the missing modules using npm . This will install the project's dependencies into your project so that you can use them. Sometimes, this might still not resolve it for you. In this case, you'll want to just delete your node_modules folder and lock file ( package-lock.

Where is package JSON NPM?

The package. json file is normally located at the root directory of a Node. js project. The name field should explain itself: this is the name of your project.


1 Answers

You will need to install react and react-addons-pure-render-mixin.

npm install --save react react-addons-pure-render-mixin

I was having the same issue from react-meteor-data package when I tried to start my app.

https://atmospherejs.com/meteor/react-meteor-data

like image 131
Dušan Minić Avatar answered Oct 06 '22 19:10

Dušan Minić