我已经从以下位置下载并安装了node.jshttps://nodejs.org/en/。
我想运行一个js文件:
console.log('hello');
I run 节点应用程序.js
并得到语法错误:
SyntaxError: Invalid or unexpected token
[90m at Module._compile (internal/modules/cjs/loader.js:895:18)[39m
[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)[39m
[90m at Module.load (internal/modules/cjs/loader.js:815:32)[39m
[90m at Function.Module._load (internal/modules/cjs/loader.js:727:14)[39m
[90m at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)[39m
[90m at internal/main/run_main_module.js:17:11[39m
我的操作系统信息:
Version: 10.0.18362
BuildNumber: 18362
OSArchitecture: 32-bit
节点.js v12.13.1
你是否从word或其他东西中复制了一些unicode字符?
尝试重新输入console.log('hello')
我以前也遇到过这样的事情,当时我从word文档中复制了一些代码。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)