reactjs / express-react-views

This is an Express view engine which renders React components on server. It renders static markup and *does not* support mounting those views on the client.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Example error after NPM install -> NPM start

thomasbyoung opened this issue · comments

Hi, I was trying to deploy a project to Heroku and ran into some issues. So to figure the issue I was going to test deploy the simple example within the repo, but even trying to run it locally doesn't seem to work.

I have followed the instructions for NPM install then NPM start,

The error I am getting is ::

$ npm start

application-name@0.0.1 start ../express-react-views/examples/simple
node app.js

module.js:487
throw err;
^

Error: Cannot find module 'react'

Any help could be helpful - thank you.

you might need to do npm install at root.
can you please paste your npm install output and error stack ?

This worked, sorry I did not realize I needed to install the main root.

Thank you.