在src中的index.html中包含node_module脚本和样式时,找不到404错误

时间:2017-04-05 12:01:16

标签: html angularjs node-modules

下面是引用脚本的代码片段以及包含脚本和样式时发生的错误的屏幕截图。

<script src="../node_modules/angular/angular.min.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>

Browser error

下面还提到了上述代码段的文件夹结构

Folder Structure

的package.json

{
  "name": "dynamic-location",
  "version": "1.0.0",
  "description": "An angular directive for listing of the objects and tracking their events in map",
  "main": "index.html",
  "scripts": {
    "test": "echo \\\"Error: no test specified\\\" && exit 1"
  },
  "keywords": [
    "angular",
    "dynamic",
    "objects",
    "event",
    "tracking",
    "map"
  ],
  "author": "Subba",
  "license": "UNLICENSED",
  "dependencies": {
    "angular": "1.5.0",
    "bootstrap": "^3.3.7",
    "grunt-contrib-jshint": "^1.1.0",
    "grunt-contrib-watch": "^1.0.0",
    "leaflet": "^1.0.3",
    "wiredep": "^4.0.0"
  },
  "devDependencies": {
    "grunt": "^1.0.1",
    "grunt-autoprefixer": "^3.0.4",
    "grunt-concurrent": "^2.3.1",
    "grunt-contrib-clean": "^1.0.0",
    "grunt-contrib-connect": "^1.0.2",
    "grunt-serve": "^0.1.6",
    "grunt-wiredep": "^3.0.1"
  }
}

0 个答案:

没有答案