Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 意外的令牌导出和通过npm导入meteor js中的google图表时出现的更多错误_Node.js_Meteor_Npm_Google Visualization_Npm Install - Fatal编程技术网

Node.js 意外的令牌导出和通过npm导入meteor js中的google图表时出现的更多错误

Node.js 意外的令牌导出和通过npm导入meteor js中的google图表时出现的更多错误,node.js,meteor,npm,google-visualization,npm-install,Node.js,Meteor,Npm,Google Visualization,Npm Install,我正在尝试使用流星js的谷歌图表 我通过NPM将其安装在以下位置: meteor npm install --save google-charts 我只是想做一个简单的例子,但是当我试图用这个在meteor中导入google图表时,从“google图表”导入{GoogleCharts}项目搞砸了 stacktrace中的第一行是: 未捕获的语法错误:意外的令牌导出那么它指向的特定行是。不确定,但它不承认出口 export let GoogleCharts = new googleCharts(

我正在尝试使用流星js的谷歌图表

我通过NPM将其安装在以下位置:

meteor npm install --save google-charts
我只是想做一个简单的例子,但是当我试图用这个在meteor中导入google图表时,从“google图表”导入{GoogleCharts}项目搞砸了

stacktrace中的第一行是: 未捕获的语法错误:意外的令牌导出那么它指向的特定行是。不确定,但它不承认出口

export let GoogleCharts = new googleCharts();
然后在这之后,我得到了更多未捕获的类型错误

Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
Uncaught TypeError: Cannot read property 'URL' of undefined
Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
Uncaught TypeError: Cannot read property 'meteorInstall' of undefined
Uncaught TypeError: Cannot read property 'Base64' of undefined
Uncaught TypeError: Cannot read property 'EJSON' of undefinedUncaught TypeError: Cannot read property 'Blaze' of undefined
Uncaught TypeError: Cannot read property 'Blaze' of undefined
还有很多未定义的错误

每当我将谷歌图表导入到我正在处理的页面时,就会发生这种情况


这是我第一次尝试通过npm安装库,通常我只使用meteor安装。不确定这里缺少什么。

请尝试多次安装。似乎npm有技术问题。我在我的windows pc和ubuntu pc上做了你的建议,但仍然得到错误SSID你尝试
npm缓存清理--force
?我修复了它。我无法在此显示的错误是无法识别export命令。我不知道为什么,但似乎与出口有所不同。因此,由于GoogleCharts npm位于节点模块中,因此我修改了js文件。我使用module.exports=googleCharts,而不是通过导出进行导出。