1
出于某些原因,我似乎无法让AWS SDK在Meteor 0.7.0.1中工作。如果我使用NPM安装,我得到如下:不能在流星中使用aws-sdk
While building the application:
node_modules/aws-sdk/node_modules/xml2js/node_modules/sax/examples/test.html:1: Can't set DOCTYPE here. (Meteor sets <!DOCTYPE html> for you)
node_modules/aws-sdk/node_modules/xml2js/node_modules/sax/LICENSE-W3C.html:1: Can't set DOCTYPE here. (Meteor sets <!DOCTYPE html> for you)
node_modules/aws-sdk/dist/console.html:1: Can't set DOCTYPE here. (Meteor sets <!DOCTYPE html> for you)
node_modules/aws-sdk/dist/s3upload.html:1: Can't set DOCTYPE here. (Meteor sets <!DOCTYPE html> for you)
node_modules/aws-sdk/dist/tests.html:1: Can't set DOCTYPE here. (Meteor sets <!DOCTYPE html> for you)
node_modules/aws-sdk/dist-tools/browser-builder.js:1:15: Unexpected token ILLEGAL
如果我安装了全球(-g标志),我得到:
Error: Cannot find module 'aws-sdk'
我也曾尝试安装流星AWS-SDK和aws-sdk-npm两者都不起作用...目前我正在尝试使用该行:
Npm.require('aws-sdk');
导入模块。
嗯,我不觉得愚蠢,我知道我试过这个,但我忽略了文档,所以我试图打电话给Npm.require('aws- sdk');没有意识到它已经包含在智能包装中。非常感谢! –