由于我的错误日志不是英文的,因此我尝试提供 IBM API Connect Web 界面在尝试添加新的 SOAP 数据源然后尝试重新加载服务器后提供的错误 trance 的重要部分。
[SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode]
/Users/tim/Development/api/test-api/node_modules/loopback/lib/application.js:246
throw err;
它告诉我做
npm install loopback-connector-soap --save
但我的意思是这当然是 StackOverflow,它没有按预期工作。
完整跟踪:
2017-02-26T20:33:58.661Z pid:63405 worker:4 loopback-connector-soap
2017-02-26T20:33:58.661Z pid:63405 worker:4 Führen Sie zur Behebung Folgendes aus:
2017-02-26T20:33:58.662Z pid:63405 worker:4 npm install loopback-connector-soap --save
2017-02-26T20:33:58.662Z pid:63405 worker:4 at DataSource.setup (/Users/tim/Development/api/test-api/node_modules/loopback-datasource-juggler/lib/datasource.js:315:28)
2017-02-26T20:33:58.662Z pid:63405 worker:4 at new DataSource (/Users/tim/Development/api/test-api/node_modules/loopback-datasource-juggler/lib/datasource.js:121:8)
2017-02-26T20:33:58.662Z pid:63405 worker:4 at Registry.createDataSource (/Users/tim/Development/api/test-api/node_modules/loopback/lib/registry.js:355:12)
2017-02-26T20:33:58.662Z pid:63405 worker:4 at dataSourcesFromConfig (/Users/tim/Development/api/test-api/node_modules/loopback/lib/application.js:440:19)
2017-02-26T20:33:58.662Z pid:63405 worker:4 at EventEmitter.app.dataSource (/Users/tim/Development/api/test-api/node_modules/loopback/lib/application.js:235:14)
2017-02-26T20:33:58.662Z pid:63405 worker:4 at /Users/tim/Development/api/test-api/node_modules/loopback-boot/lib/executor.js:190:9
2017-02-26T20:33:58.662Z pid:63405 worker:4 at /Users/tim/Development/api/test-api/node_modules/loopback-boot/lib/executor.js:281:5
2017-02-26T20:33:58.662Z pid:63405 worker:4 at Array.forEach (native)
2017-02-26T20:33:58.662Z pid:63405 worker:4 at forEachKeyedObject (/Users/tim/Development/api/test-api/node_modules/loopback-boot/lib/executor.js:280:20)
2017-02-26T20:33:58.662Z pid:63405 worker:4 at setupDataSources (/Users/tim/Development/api/test-api/node_modules/loopback-boot/lib/executor.js:180:3)
2017-02-26T20:33:58.662Z pid:63405 worker:4 at execute (/Users/tim/Development/api/test-api/node_modules/loopback-boot/lib/executor.js:38:3)
2017-02-26T20:33:58.662Z pid:63405 worker:4 at bootLoopBackApp (/Users/tim/Development/api/test-api/node_modules/loopback-boot/index.js:154:3)
2017-02-26T20:33:58.662Z pid:63405 worker:4 at Object.<anonymous> (/Users/tim/Development/api/test-api/server/server.js:23:1)
2017-02-26T20:33:58.662Z pid:63405 worker:4 at Module._compile (module.js:425:26)
2017-02-26T20:33:58.663Z pid:63405 worker:4 at Object.Module._extensions..js (module.js:432:10)
2017-02-26T20:33:58.663Z pid:63405 worker:4 at Module.load (module.js:356:32)
我对此真的很陌生,所以我不知道从哪里开始搜索错误,在我做某事之前