我已經(jīng)從https://nodejs.org/en/下載并安裝了node.js。我想運(yùn)行一個(gè)js文件:console.log('hello');我運(yùn)行節(jié)點(diǎn) app.js并得到一個(gè)語(yǔ)法錯(cuò)誤: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我的操作系統(tǒng)信息:Version: 10.0.18362BuildNumber: 18362OSArchitecture: 32-bitnode.js v12.13.1
node.js SyntaxError:無(wú)效或意外的令牌
繁華開(kāi)滿天機(jī)
2022-01-13 16:07:40