我正在尝试通过基于Node的API来获取数据(首次使用node)。
这是我根据文档编写的代码: GitHub Documentation
npm install boxrec -g
const boxrec = require("boxrec").Boxrec;
但是我一直遇到此错误消息:
const : The term 'const' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ const boxrec = require("boxrec").Boxrec;
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (const:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException