在节点js中安装aws-sdk将返回npm错误

我正在尝试安装aws-sdk,按照开始在node.js中使用AWS Polly服务的说明。 我试图按照Windows 10,Windows 10机器上的Visual Studio 2015和运行Raspbian的Raspberry Pi中的说明安装它。 在所有尝试安装失败。 我使用的命令是Windows和RPi上的“npm install aws-sdk”。

以下是在Raspberry Pi和Visual Studio下安装的输出:

Registry url: https://registry.npmjs.org/ Current Time: 8/6/2017 1:16:59 AM Last Refreshed: 2/20/2016 1:36:30 PM Number of Results: 257342 ====Executing command 'npm install aws-sdk --save '==== npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "aws-sdk" "--save" npm ERR! node v6.11.2 npm ERR! npm v3.10.10 npm ERR! file C:\Users\barry\AppData\Roaming\npm-cache\isarray\1.0.0\package\package.json npm ERR! code EJSONPARSE npm ERR! Failed to parse json npm ERR! Unexpected token '\u0000' at 1:1 npm ERR! npm ERR! ^ npm ERR! File: C:\Users\barry\AppData\Roaming\npm-cache\isarray\1.0.0\package\package.json npm ERR! Failed to parse package.json data. npm ERR! package.json must be actual JSON, not just JavaScript. npm ERR! npm ERR! This is not a bug in npm. npm ERR! Tell the package author to fix their package.json file. JSON.parse npm ERR! Please include the following file with any support request: npm ERR! C:\Users\barry\Documents\Visual Studio 2015\Projects\AWS_Proxy\AWS_Proxy_app\npm-debug.log 

我可能会做错什么?

你有没有find解决scheme? 尝试使用-g?