Ao tentar executar pela primeira vez o arquivo usando o NPM START, surgiu o seguinte erro: Alguém sabe como corrigir?
throw err;
^
Error: Cannot find module 'C:\Users\breno\alura-timer\node_modules\electron\cli.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! alura-timer@1.0.0 start: `electron .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the alura-timer@1.0.0 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! C:\Users\breno\AppData\Roaming\npm-cache\_logs\2020-01-02T22_40_22_737Z-debug.log
PS C:\Users\breno\alura-timer> npm install cli.js
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN alura-timer@1.0.0 No description
npm WARN alura-timer@1.0.0 No repository field.
+ cli.js@1.0.2
added 5 packages from 7 contributors and audited 6 packages in 24.942s
found 0 vulnerabilities
PS C:\Users\breno\alura-timer> npm start
> alura-timer@1.0.0 start C:\Users\breno\alura-timer
> electron .
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module 'C:\Users\breno\alura-timer\node_modules\electron\cli.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! alura-timer@1.0.0 start: `electron .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the alura-timer@1.0.0 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! C:\Users\breno\AppData\Roaming\npm-cache\_logs\2020-01-02T22_42_16_062Z-debug.log