由于某种原因,我似乎无法使AWS开发工具包在Meteor 0.7.0.1中运行。如果使用npm进行安装,则会得到以下信息:
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'
我也尝试过安装meteor-aws-sdk和aws-sdk-npm两者都无法正常工作...目前,我正在尝试使用以下行:
Npm.require( 'aws-sdk' );
导入模块。
您已使用安装了模块npm
。流星不支持以这种方式安装的npm模块。您需要使用包装纸,例如npm
大气包装。
您可以aws-sdk
使用陨石安装。有最新的气氛包:https : //atmosphere.meteor.com/package/aws-sdk
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句