2017-08-06 153 views
1

我試圖按照開始使用AWS Polly服務和node.js中的說明來安裝aws-sdk。我試圖按照Windows 10,Windows 10機器上的Visual Studio 2015和運行Raspbian的Raspberry Pi中的說明安裝它。在所有嘗試安裝失敗。我使用的命令是Windows和RPi上的'npm install aws-sdk'。在節點js中安裝aws-sdk返回npm錯誤

下面是對樹莓派和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 

什麼可能我是做錯了什麼?

回答

0

您是否找到解決方案? 嘗試使用-g?