简体   繁体   中英

I am having issues running javascript on sublime text

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:

我在使用 Sublime Text 时遇到的问题

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM