Error to open application

Asked

Viewed 86 times

1

Good afternoon,

I cloned a repository that uses Angularjs and Node.js. I would like to rotate it, but by clicking on

"index.html"

the site appears incomplete.

In the terminal, inside the repository I put this to see if it ran

directory$ nodemon app.js

Since app.js is a cloned repository file But still not running, error appears:

[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node app.js`
/home/junior/Documentos/GitLab/skipq-web/src/js/app.js:3
  var App = angular.module("App", [
            ^

ReferenceError: angular is not defined
    at /home/junior/Documentos/GitLab/skipq-web/src/js/app.js:3:13
    at Object.<anonymous> (/home/junior/Documentos/GitLab/skipq-web/src/js/app.js:241:2)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:427:7)
    at startup (bootstrap_node.js:148:9)

Someone knows what I have to do to get around?

My package.json:

{
  "name": "meuprojeto",
  "version": "1.0.0",
  "description": "",
  "main": "gulpfile.js",
  "dependencies": {
    "browser-sync": "^2.18.8",
    "del": "^2.2.2",
    "gulp": "^3.9.1",
    "gulp-concat": "^2.6.1",
    "gulp-inject": "^4.2.0",
    "gulp-order": "^1.1.1",
    "gulp-sass": "^3.1.0",
    "gulp-uglify": "^2.0.1",
    "gulp-watch": "^4.3.11",
    "main-bower-files": "^2.13.1",
    "run-sequence": "^1.2.2"
  },
  "devDependencies": {
    "gulp-main-bower-files": "^1.6.1",
    "gulp-ng-annotate": "^2.0.0"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/.../....git"
  },
  "author": "",
  "license": "ISC",
  "bugs": {
    "url": "https://github.com/.../.../issues"
  },
  "homepage": "https://github.com/.../...#readme"
}
  • forehead run diretório$ webpack to compile files. You can show the package.json?

  • When I run the diretório$ weback this happens: webpack&#xA;webpack: comando não encontrado

  • Can you put the package.json of this project here, or a link? You may need to compile files with webpack or Browserify. If webpack is not installed you have to do npm install webpack -g. I assume you’ve run npm install to install the project.

  • You entered the tag <script> with reference to the angular js. inside your HTML??? Also, it needs to be loaded before loading the app js..

  • How I carry it app js.? Yes, I referenced the library angular js. in the HTML

  • Did you manage to resolve this question? To notify a person when you answer them, write their name like this: @nomedapessoa olá... (important, if not the person forgets that he is talking to you here!)

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.