我一直在试图导入node_modules库到我的应用程序,但在控制台不断返回Angular 2如何在node_modules中导入库?
GET http://localhost:4200/node_modules/systemjs/dist/system.src.js
没有找到。有没有人知道如何解决这个问题?
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>PrcApplication</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<script src="../node_modules/systemjs/dist/system.src.js"></script>
</head>
<body>
<app-root>Loading...</app-root>
</body>
</html>
请告诉我们'index.html'和'node_modules'的文件夹结构 –