I exactly followed the readme lecture, everything went fine, but when I used the npm start command, I got the following error. Even though after hassling using google, I’m still unable to start the application:
D:\Learn\mflix-js>npm start
server@1.0.0 start D:\Learn\mflix-js
nodemon -L ./index.js
[nodemon] 1.19.1
[nodemon] to restart at any time, enterrs
[nodemon] watching: .
[nodemon] startingnode ./index.js
internal/modules/cjs/loader.js:626
throw err;
^
Error: Cannot find module ‘babel-core/register’
Require stack:
D:\Learn\mflix-js\index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:623:15)
at Function.Module._load (internal/modules/cjs/loader.js:527:27)
at Module.require (internal/modules/cjs/loader.js:681:19)
at require (internal/modules/cjs/helpers.js:16:16)
at Object. (D:\Learn\mflix-js\index.js:1:1)
at Module._compile (internal/modules/cjs/loader.js:774:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:785:10)
at Module.load (internal/modules/cjs/loader.js:641:32)
at Function.Module._load (internal/modules/cjs/loader.js:556:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:837:10) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [ ‘D:\Learn\mflix-js\index.js’ ]
}
[nodemon] app crashed - waiting for file changes before starting…
Even I tried installing bable using
npm install @babel/core --save
and it didn’t worked and said
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ahsan Ali\AppData\Roaming\npm-cache_logs\2019-08-21T06_16_34_572Z-debug.log