If I try with Code Runner I get this error: c:\js\hello. For more information about the general IntelliSense. Powered by a TypeScript-based language service, Visual Studio delivers rich IntelliSense, support for modern JavaScript features, and productivity features such as Go to Definition, refactoring, and more. If I run the command node hello.js I get the following error: Error: Cannot find module 'C:\hello\hello.js'Īt Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)Īt Function.Module._load (internal/modules/cjs/loader.js:507:25)Īt (internal/modules/cjs/loader.js:742:12)Īt startup (internal/bootstrap/node.js:283:19)Īt bootstrapNodeJSCore (internal/bootstrap/node.js:743:3) Visual Studio provides a powerful JavaScript editing experience right out of the box. How can I solve it visual-studio-code error-handling Share Improve this question Follow edited yesterday starball 18k 6 36 188 asked at 8:38 Costar 11 4 Please edit your question to include your errors as text rather than as a screenshot. From a previous tutorial, I've already downloaded Node.js which appears to be recognized by VSC. Per those answers, I got the extension "Code Runner" which didn't help. I searched SO and found a few related answers. Fast forward to now and I'm down to 1 line of JavaScript and at this point I'd do cartwheels if I could just get a console log output. I started with a simple calculator tutorial which provided all the source code. I'm brand new to JavaScript and very new to vsc and I can't execute even the simplest, copy-pasted 1 liner code from a tutorial.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |