常量未被识别为cmdlet的名称

时间:2019-10-31 15:49:48

标签: node.js

我正在尝试通过基于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

0 个答案:

没有答案
相关问题