简体   繁体   English

我在崇高文本上运行 javascript 时遇到问题

[英]I am having issues running javascript on sublime text

I just started my JavaScript course but I am having issues running JavaScript code.我刚开始我的 JavaScript 课程,但在运行 JavaScript 代码时遇到问题。 Note: I built a system and I have nodejs but my system is giving me issues:注意:我建立了一个系统并且我有 nodejs,但是我的系统给了我一些问题:

我在使用 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.打开 windows 搜索栏并查找“环境变量”,打开它并查找当前用户的“路径”变量,如果没有像下面这样的路径,添加一个。

C:\Users\<your username here>\AppData\Roaming\npm

If it still doesn't work then you probably didn't install NodeJS correctly.如果它仍然不起作用,那么您可能没有正确安装 NodeJS。 Install Node again.再次安装节点。 Open CMD, type "node" and press Enter.打开 CMD,输入“node”并回车。 If it gives a response like "Welcome to Node...".如果它给出类似“欢迎使用 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看着你上传的图片,我觉得你试图直接从你的 sublime 控制台运行你的节点并且它没有正确安装

visit this link https://pawelgrzybek.com/javascript-console-in-sublime-text/访问此链接https://pawelgrzybek.com/javascript-console-in-sublime-text/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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