Error: spawn node_modules/.bin/webpack-dev-server ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
at onErrorNT (internal/child_process.js:415:16)
[... lines matching original stack trace ...]
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-facebook-login@4.1.1 start: cross-env NODE_ENV=development node_modules/.bin/webpack-dev-server --config webpack.config.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-facebook-login@4.1.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/giulioserra/.npm/_logs/2020-04-13T21_26_32_645Z-debug.log
Here is the folder structure: project>project>src and react-facebook-login
any tips?
I'm trying to test the Facebook login while developing on localhost:3000, when I try to follow this steps:
git clone https://github.com/keppelen/react-facebook-login.git && cd react-facebook-login npm install react react-dom react-facebook-login --save --force npm start
I'm getting:
events.js:174 throw er; // Unhandled 'error' event ^
Error: spawn node_modules/.bin/webpack-dev-server ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19) at onErrorNT (internal/child_process.js:415:16) at process._tickCallback (internal/process/next_tick.js:63:19) at Function.Module.runMain (internal/modules/cjs/loader.js:834:11) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3) Emitted 'error' event at: at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12) at onErrorNT (internal/child_process.js:415:16) [... lines matching original stack trace ...] at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! react-facebook-login@4.1.1 start:
cross-env NODE_ENV=development node_modules/.bin/webpack-dev-server --config webpack.config.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the react-facebook-login@4.1.1 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /Users/giulioserra/.npm/_logs/2020-04-13T21_26_32_645Z-debug.log
Here is the folder structure: project>project>src and react-facebook-login any tips?