I just started my JavaScript course but I am having issues running JavaScript code.
Note: I built a system and I have nodejs but my system is giving me issues:
Open windows search bar and look for, "Environment Variables", open it and look for "path" variable for current user and if there isn't a path like below, add one.
C:\Users\<your username here>\AppData\Roaming\npm
If it still doesn't work then you probably didn't install NodeJS correctly. Install Node again.
Open CMD, type "node" and press Enter. If it gives a response like "Welcome to Node ...". There you have it, it will work now.
Looking at the picture you uploaded,
I feel like you trying to run your node directly from your sublime console
and it not properly install
visit this link https://pawelgrzybek.com/javascript-console-in-sublime-text/
Related
We are making a web app, and using Vscode live share feature, to edit on the same code. Altough we can edit the same code, my colleague cannot run the html code(chrome) in his own computer, for some reason we are on the same terminal(my mac), and when he runs it we see an error on my side too. How can we solve this issue on my end, to I have to give permissions? And how do we create a a different terminal for him using the base code.
I use VS Code + 'Live Server' plug-in very often so everytime I save, the project will be refreshed automatically.
Today I was playing around with PhpStorm, newest version with legit subscription license (I've been using phpstorm for couple years) but it seemed that 'Live Edit' plug-in not working even I tried to look it up on internet. However, none of them helped!
I appreciate any help! Thanks
What I did:
Installed Jetbrains IDE extension on Chrome
Installed 'Live Edit' plug in on PhpStorm
Settings as below:
To Live Edit feature works only when the JavaScript debug session is started for the URL your app is running on.
To start one, in the menu Run - Edit Configurations, create a new config of the type JavaScript Debug and specify the URL of your app (e.g. localhost:3000). Save the config and start the debugger.
To use Live Edit for an .html file, you can also use the IDE built-in server and start debugger – right-click on the file in project view or editor and select Debug filename.html.
How to run javascript with node js without opening google chrome from different proxies.
Can i get a sample code.
eg project: https://github.com/huytd/agar.io-clone
eg2project: https://drive.google.com/drive/folders/19v9lxRrRqrMp6n3k5rbDRljGVdLYELQc?usp=sharing
I don't want to use the project i link to
briefly: I'm trying to find a code that goes to Facebook.com/nick and clicks the send message button
puppeteer: puppeteer is no-gui-on-gui chromium browser. and nodejs
I just installed Node.JS tools for visual studio and created a new Blank Node.js Web Application. Without any other modifications to the project, whenever I click on >Internet explorer or hit the F5 key, a console window displaying Debugger listening on [::]:5858 appears and that's it, the debug button becomes enabled again and the console window remains open.
I then tried accessing localhost:1337 (the default port configured both in the project properties and in the code itself) and it tells me the page doesn't exist. I then tried localhost:8080 and still nothing. The only one that seems to work is localhost:5858 that only seems to display some debug info.
However, if I choose to start without debugging then Visual Studio happily launches the same console window AND the browser which immediately starts to load localhost:1337 and once it's finished I am greeted by the "Hello world" message that the project is written to display.
I tried reinstalling the extension, the entire IDE and finally I tried it on a separate machine that ended up exhibiting the same behavior.
Any clues? Any steps I have overlooked?
1) Inside your project, right click on the js script and select Set as Node.js Start up File
2) Right Click on the Project and click on Debug -> Start New Instance
Your debug session is started. This procedure is for console project.
Before I get into the details, please note:
I'm using Meteor 1.2 and the latest version of WebStorm 11.
Client-side debugging works fine, at least using the Chrome Web Inspector, client-side logging is shown in the console.
My issue is I can’t get server-side debugging to work. I’ve now tried all of the following to no avail:
Running meteor debug and launching Node Inspector (it hooks into my Meteor instance but doesn’t log anything server side or hit any breakpoints I've set using debugging; statements in the code, code execution was not suspended)
Launching Meteor from WebStorm, putting console.log() statements all over the place. Nothing would get printed, breakpoints wouldn’t be hit
Running meteor shell and trying to see logging there
Using Atom IDE instead, however this is not suitable for me because of a company proxy which the Atom plugin manager isn't able to circumvent (doesn't route proxy info).
WS 11.0.2 definitely broke this. Although not listed on JetBrains' website, typing in the download executable URL for WS 11.0.1 by hand (http://download.jetbrains.com/webstorm/WebStorm-11.0.1.exe) allowed me to get back to the previous minor version. After installing 11.0.1, I am able to debug my code in the WebStorm IDE, set and hit breakpoints and see server-side logging.