npm でいくつかのノード モジュールをロードするために、jspm と SystemJS を使用しました。そのうちの 1 つ ( docker-api-wrapper ) は、その内部でrequestモジュールを使用していました。そのため、ブラウザで実行しようとすると、常に次のような例外がスローされました
Error loading "npm:docker-api-wrapper@0.2.9"
at http: //localhost:58063/lib/npm/docker-api-wrapper@0.2.9.js
Error loading "npm:docker-api-wrapper@0.2.9"
from "js/site"
at http: //localhost:58063/js/site.js
Error evaluating http: //localhost:58063/lib/npm/docker-api-wrapper@0.2.9.js
uncaught exception: Error evaluating http: //localhost:58063/lib/npm/docker-api-wrapper@0.2.9/index.js
uncaught exception: Error evaluating http: //localhost:58063/lib/npm/docker-api-wrapper@0.2.9/lib/DockerApi.js
uncaught exception: Error evaluating http: //localhost:58063/lib/npm/docker-api-wrapper@0.2.9/lib/utils.js
uncaught exception: Error evaluating http: //localhost:58063/lib/npm/request@2.61.0.js
uncaught exception: Error evaluating http: //localhost:58063/lib/npm/request@2.61.0/index.js
uncaught exception: Error evaluating http: //localhost:58063/lib/npm/request@2.61.0/request.js
uncaught exception: Error evaluating http: //localhost:58063/lib/npm/forever-agent@0.6.1.js
uncaught exception: Error evaluating http: //localhost:58063/lib/npm/forever-agent@0.6.1/index.js
uncaught exception: Error evaluating http: //localhost:58063/lib/github/jspm/nodelibs-tls@0.1.0.js
uncaught exception: Error evaluating http: //localhost:58063/lib/github/jspm/nodelibs-tls@0.1.0/index.js
uncaught exception: Node tls module not supported in browsers.
es6 - mod...ader.js(line 7)
uncaught exception: Node tls module not supported in browsers.
uncaught exception: Error evaluating http: //localhost:58063/lib/github/jspm/nodelibs-tls@0.1.0/index.js
uncaught exception: Node tls module not supported in browsers.
誰かがそれについて私を助けることができますか? どうもありがとうございました。