insin / insin/react-hn

Error in app start-up

Open
#48 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
2.2k
Forks
328
PR merge metrics
No merged PRs in 30d

Description

I did npm install, npm run build and then npm start

agniva-~/play/react-hn$npm start

```
> react-hn@1.4.13 start /home/agniva/play/react-hn
> node server.js

module.js:327
throw err;
^

Error: Cannot find module 'babel/register'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/home/agniva/play/react-hn/server.js:6:1)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)

npm ERR! Linux 4.2.0-16-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v4.3.2
npm ERR! npm v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! react-hn@1.4.13 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-hn@1.4.13 start script 'node server.js'.
npm ERR! This is most likely a problem with the react-hn package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls react-hn
npm ERR! There is likely additional logging output above.
```

My node version is 4.3.2. Do I need to upgrade ?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with server.js at line 6 and reproduce the npm install, npm run build, and npm start commands under the reported Node 4.3.2 environment. Investigate why babel/register is unavailable; the issue is done when npm start launches without the missing-module error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, react
Domain
backend, web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.