未捕获的SyntaxError:运行IISnode时出现意外的令牌<runtime.4501af5c35d1125f6901.js:1

时间:2019-06-27 16:49:06

标签: node.js iis iisnode

iisnode内的根目录 enter image description here

内部客户端目录 enter image description here

<!doctype html>
     <html lang="en">
    <head>
     <meta charset="utf-8">
       <title>ANSYS Licensing Portal</title>
       <base href="/node/">
       <meta name="viewport" content="width=device-width, initial-scale=1">
       <link rel="icon" type="image/x-icon" href="favicon.ico">
       <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
       <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
       <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="" crossorigin="anonymous">
       <link rel="stylesheet" href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css">
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
      <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="" crossorigin="anonymous"></script>
      <link rel="stylesheet" href="styles.82aa555aa62ae3bd79d8.css"></head>
    <body>
       <style>...</style>
        <app-root>
                <div class="top-container">
            <mat-toolbar class="mat-elevation-z2 toptoolbar">
                <div class="divlogo">
                    <img class="logoloading" src="" alt="Portal Logo">
                </div>
                <div>
                    <p class="loading"> Portal Loading...</p>
                </div>
                <span class="app-toolbar-filler"></span>
            </mat-toolbar>
            </div>
        </app-root>
        <script type="text/javascript" src="runtime.4501af5c35d1125f6901.js"></script>
       <script type="text/javascript" src="polyfills.c466c90744ce632ac8b9.js">
      </script><script type="text/javascript" src="scripts.2491a780f92813f20e72.js"></script>
      <script type="text/javascript" src="main.c1b82e811a8fb7c4cdaf.js"> </script></body>
     </html>

我正在运行iisnode。如问题链接所示,我将项目部署到了​​iisnode中。我已启用目录浏览。我已经展示了web.config,app.js,在这里我还将发布index.js。

我在客户端目录中有静态内容。我在服务器目录中有node.js内容。请注意,我整个只有一个web.config,每个目录都没有web.config,这样可以吗?

错误快照 enter image description here

enter image description here

0 个答案:

没有答案