Error getting 404 when including scripts and styles node_module in index.html inside src

Below is a code snippet for referencing scripts and a screenshot of the error, including scripts and styles.

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

      

Browser error

Also below is the folder structure of the mentioned code snippet

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"
  }
}

      

+3
html angularjs node-modules


source to share


No one has answered this question yet

Check out similar questions:

233
How do I include scripts inside the node_modules folder?
76
AngularJS: How to make angular script load inside ng-include?
1
404 with index.html file
1
js files in node_modules not found when using Angularjs with node.js
0
javascript src file 404 (not found)
0
I am getting 404 node_modules not found
0
Getting 404 Not Found error when including scripts using Node.js
-1
HTML img src returns 404 not found error
-1
Cannot include script angular2 index.html (not found)
-1
file not found 404 when using src tag script in html file



All Articles
Loading...
X
Show
Funny
Dev
Pics