Angular2英雄之旅教程非常棒!我通过走过它学到了很多东西。但是,测试没有作为教程的一部分进行维护。所以现在我想开始以英雄之旅为基础来构建更多东西,但测试不起作用。我做了一个“npm run test-once”,我收到一个错误:
04 01 2017 14:33:18.385:INFO [launcher]: Starting browser Chrome 04 01 2017 14:33:19.764:INFO [Chrome 55.0.2883 (Windows 8.1 0.0.0)]:
Connected o n socket /#xllTF8FZdOEL9EuRAAAA with id 63237867 04 01
2017 14:33:20.314:WARN [web-server]: 404:
/base/node_modules/angular-in-memory-web-api/bundles/in-memory-web-api.umd.js Chrome 55.0.2883
(Windows 8.1 0.0.0) ERROR {
"originalStack": "Error: (SystemJS) XHR error (404 Not Found) loading node_modules/angular-in-memory-web-api/bundles/in-memory-web-api.umd.js\n\tError:
XHR error (404 Not Found) loading
node_modules/angular-in-memory-web-api/bundles/in-memory-web-api.umd.js\n\tError loading
node_modules/angular-in-memory-web-api/bundles/in-memory-web-api.umd.js as \"angular-in-memory-web-api\" from
app/app.com ponent.spec.js",
"zoneAwareStack": "Error: (SystemJS) XHR error (404 Not Found) loading node_modules/angular-in-memory-web-api/bundles/in-memory-web-api.umd.js\n\tError:
XHR error (404 Not Found) loading
node_modules/angular-in-memory-web-api/bundles/in-memory-web-api.umd.js\n\tError loading node_modules/angular-in-memory-web-api/bundles/in-memory-web-api.umd.js as \"angular-in-memory-web-api\" from
app/app.co mponent.spec.js",
"originalErr": {
"originalStack": "Error: XHR error (404 Not Found) loading node_modules/angular-in-memory-web-api/bundles/in-memory-web-api.umd.js",
"zoneAwareStack": "Error: XHR error (404 Not Found) loading node_modules/angular-in-memory-web-api/bundles/in-memory-web-api.umd.js"
} }
一个。有没有一种简单的方法来修复此错误?
湾是否有人对“英雄之旅”教程进行了必要的更改以保持测试运行?似乎是一个有益于社区的有价值的东西。