Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`npm run myapp:build-electron` fails

See original GitHub issue

Using newly released Angular CLI 8.0.0, I do, ng new myapp, select yes for routing, and SCSS for styling, and the app is generated. Then I cd into the folder and do ng add @richapps/ngtron. This command succeeds, however when I try to run ng run project:build-electron I get the error:

ENOENT: no such file or directory, copyfile 'C:\Users\Elchin\Projects\myapp\src\electron.ts' -> 'dist\myapp\electron.ts'
Error: ENOENT: no such file or directory, copyfile 'C:\Users\Elchin\Projects\myapp\src\electron.ts' -> 'dist\myapp\electron.ts'
    at Object.copyFileSync (fs.js:1724:3)
    at C:\Users\Elchin\Projects\myapp\node_modules\@richapps\ngtron\builders\build\index.js:47:18
    at (<anonymous>)
    at fulfilled (C:\Users\Elchin\Projects\myapp\node_modules\@richapps\ngtron\builders\build\index.js:4:58)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
    at startup (internal/bootstrap/node.js:282:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

BenjaminDoblercommented, May 29, 2019

Thanks for the report. I will have a fix later today. Until then you can manually copy the electron.ts file from the node_modules/@richapps/ngtron/schematics/ng-add/files/src folder into your projects src folder and you should be good to go.

BenjaminDoblercommented, Oct 2, 2019

@ellipizle Allright glad it`s working for you now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

error: This is probably not a problem with npm. There is likely ...
I'm using npm run build -prod command to build the frontend first. But I can't build my project since the following error occurs...
Read more >
Run arbitrary package scripts. ... a node_modules directory and it fails, you will be given a warning to run npm install , just...
Read more >
npm-run-all/ at master - GitHub
A CLI tool to run multiple npm-scripts in parallel or sequential. ... 'run-s' itself will exit with non-zero code if one or more...
Read more >
"The NPM script 'start' exited without indicating that the create ...
Net React Application. When I try to run my project I always get this error: 181477-image.png. I' ...
Read more >
Helpers and tips for npm run scripts - Michael Kühnel
The tests will not run if linting fails, or more generally: the following script won't be executed if one of the scripts running...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found