[英]I am having issues running javascript on 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.