我已经从https://nodejs.org/en/下载并安装了node.js。我想运行一个js文件:
console.log('hello');
我运行节点 app.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
node.js v12.13.1
MMMHUHU
繁花不似锦
相关分类