question-mark
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.

I try to build the plugin with

vsce package
Executing prepublish script 'npm run vscode:prepublish'...
 ERROR  Command failed: npm run vscode:prepublish
warning dance@0.1.0: The engine "vscode" appears to be invalid.
/bin/sh: ts-node: command not found
error Command failed with exit code 127.
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! dance@0.1.0 vscode:prepublish: `yarn run generate && yarn run compile`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the dance@0.1.0 vscode:prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jjk/.npm/_logs/2019-06-17T12_21_36_192Z-debug.log

Any ideas on what might be the problem?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
71commented, Jun 18, 2019

It looks like the ts-node command cannot be found, even though it is listed in the package.json devDependencies. Did you install them (npm install or yarn install)?

0reactions
71commented, Nov 16, 2019

Thanks for the report. 0d7014fa0f5748dd4419be6f042741aff06c276a and 15099c3097a1024eb6b303a760741128d5f386a4 should fix this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

30 Construction Fails That Are Unbelievably Stupid – Part1
30 Construction Fails That Are Unbelievably Stupid – Part1. As you scroll through these ridiculous construction fails we can guarantee the same thoughts...
Read more >
29 Hilarious Construction Fails | Comedy.com
Being an architect is no easy job, but these construction fails are just too funny.
Read more >
Guy Finds The Worst Construction Fails, Adds Funny Captions
Guy Finds The Worst Construction Fails And 'Justifies' Them With Hilarious Captions (30 Pics) ... Trevor Lahey, AKA Greaseball1987, is one Certified Caulk ......
Read more >
18 Construction Fails That Made Me Whisper "Oh Noooooo"
18 Construction Fails That Made Me Whisper "Oh Noooooo" · 1. There are a few issues with this clock: · 2. Security is...
Read more >
710 Construction fails ideas in 2022 - Pinterest
Nov 25, 2022 - Explore Lawrence Estes's board "Construction fails" on Pinterest. See more ideas about construction fails, you had one job, fails....
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found