Skip to content

Instantly share code, notes, and snippets.

@esperancaJS
Last active September 26, 2016 08:14
Show Gist options
  • Save esperancaJS/4d99f837474255f4b29f4949a0aa4dfd to your computer and use it in GitHub Desktop.
Save esperancaJS/4d99f837474255f4b29f4949a0aa4dfd to your computer and use it in GitHub Desktop.
Angular 3 dev environment setup issues

(all repositories are in branch pre-master)

Clicking login with the correct credentials returns in the console:

angular.js:11442 POST http://localhost:9000/api/authenticate net::ERR_EMPTY_RESPONSE(anonymous function) @ angular.js:11442sendReq @ angular.js:11235serverRequest @ angular.js:10945processQueue @ angular.js:15552(anonymous function) @ angular.js:15568$eval @ angular.js:16820$digest @ angular.js:16636$apply @ angular.js:16928(anonymous function) @ angular.js:24551dispatch @ jquery.js:4435elemData.handle @ jquery.js:4121
login.js:33 null
angular.js:13236 Error sent to server
angular.js:13236 TypeError: Cannot read property 'message' of null
    at http://localhost:9000/components/login/controllers/login.js:34:37
    at processQueue (http://localhost:9000/bower_components/angular/angular.js:15552:28)
    at http://localhost:9000/bower_components/angular/angular.js:15568:27
    at Scope.$eval (http://localhost:9000/bower_components/angular/angular.js:16820:28)
    at Scope.$digest (http://localhost:9000/bower_components/angular/angular.js:16636:31)
    at Scope.$apply (http://localhost:9000/bower_components/angular/angular.js:16928:24)
    at done (http://localhost:9000/bower_components/angular/angular.js:11266:47)
    at completeRequest (http://localhost:9000/bower_components/angular/angular.js:11464:7)
    at XMLHttpRequest.requestError (http://localhost:9000/bower_components/angular/angular.js:11415:9) undefined(anonymous function) @ angular.js:13236(anonymous function) @ angular.js:9965(anonymous function) @ app.js:96processQueue @ angular.js:15560(anonymous function) @ angular.js:15568$eval @ angular.js:16820$digest @ angular.js:16636$apply @ angular.js:16928done @ angular.js:11266completeRequest @ angular.js:11464requestError @ angular.js:11415
angular.js:11442 POST http://localhost:9000/api/authenticate net::ERR_EMPTY_RESPONSE(anonymous function) @ angular.js:11442sendReq @ angular.js:11235serverRequest @ angular.js:10945processQueue @ angular.js:15552(anonymous function) @ angular.js:15568$eval @ angular.js:16820$digest @ angular.js:16636$apply @ angular.js:16928(anonymous function) @ angular.js:24551dispatch @ jquery.js:4435elemData.handle @ jquery.js:4121
login.js:33 null

and in server.log

�[31m>> �[39mProxy error:  ECONNREFUSED

BulbThings-Auth was launched by npm start

pedro@pedro-Surface-Pro-3:~/Documents/bulb/BulbThings-Auth$ npm start

> [email protected] start /home/pedro/Documents/bulb/BulbThings-Auth
> node app.js

Follow the white rabbit at port 3000

BulbThings-BackOffice was launched by npm start

pedro@pedro-Surface-Pro-3:~/Documents/bulb/BulbThings-BackOffice$ npm start

> [email protected] start /home/pedro/Documents/bulb/BulbThings-BackOffice
> node app.js

Listening on port 3005

application/Backend/Restify2 was launched by sudo make local-start

npm WARN package.json [email protected] 'repositories' (plural) Not supported.
npm WARN package.json Please pick one as the 'repository' field
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/swagger-restify
npm http 304 https://registry.npmjs.org/swagger-restify
npm WARN prefer global [email protected] should be installed with -g

> [email protected] install /home/pedro/Documents/bulb/application/Backend/Restify2/node_modules/dtrace-provider
> node scripts/install.js

npm WARN prefer global [email protected] should be installed with -g
npm WARN prefer global [email protected] should be installed with -g
npm WARN prefer global [email protected] should be installed with -g

> [email protected] preinstall /home/pedro/Documents/bulb/application/Backend/Restify2/node_modules/v8-debug
> node -e 'process.exit(0)'


> [email protected] install /home/pedro/Documents/bulb/application/Backend/Restify2/node_modules/v8-debug
> node-pre-gyp install --fallback-to-build

[v8-debug] Success: "/home/pedro/Documents/bulb/application/Backend/Restify2/node_modules/v8-debug/build/debug/v0.7.7/node-v11-linux-x64/debug.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

> [email protected] preinstall /home/pedro/Documents/bulb/application/Backend/Restify2/node_modules/v8-profiler
> node -e 'process.exit(0)'


> [email protected] install /home/pedro/Documents/bulb/application/Backend/Restify2/node_modules/v8-profiler
> node-pre-gyp install --fallback-to-build

[v8-profiler] Success: "/home/pedro/Documents/bulb/application/Backend/Restify2/node_modules/v8-profiler/build/profiler/v5.6.5/node-v11-linux-x64/profiler.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
npm WARN unmet dependency /home/pedro/Documents/bulb/application/Backend/Restify2/node_modules/fs.extra requires mkdirp@'~0.3.5' but will load
npm WARN unmet dependency /home/pedro/Documents/bulb/application/Backend/Restify2/node_modules/mkdirp,
npm WARN unmet dependency which is version 0.5.1
npm WARN unmet dependency /home/pedro/Documents/bulb/application/Backend/Restify2/node_modules/restify-jwt requires jsonwebtoken@'^5.0.0' but will load
npm WARN unmet dependency /home/pedro/Documents/bulb/application/Backend/Restify2/node_modules/jsonwebtoken,
npm WARN unmet dependency which is version 7.1.9
npm WARN unmet dependency /home/pedro/Documents/bulb/application/Backend/Restify2/node_modules/fs-extra requires mkdirp@'0.3.x' but will load
npm WARN unmet dependency /home/pedro/Documents/bulb/application/Backend/Restify2/node_modules/mkdirp,
npm WARN unmet dependency which is version 0.5.1
npm WARN unmet dependency /home/pedro/Documents/bulb/application/Backend/Restify2/node_modules/jsprim requires extsprintf@'1.0.2' but will load
npm WARN unmet dependency /home/pedro/Documents/bulb/application/Backend/Restify2/node_modules/extsprintf,
npm WARN unmet dependency which is version 1.3.0
npm WARN unmet dependency /home/pedro/Documents/bulb/application/Backend/Restify2/node_modules/verror requires extsprintf@'1.0.2' but will load
npm WARN unmet dependency /home/pedro/Documents/bulb/application/Backend/Restify2/node_modules/extsprintf,
npm WARN unmet dependency which is version 1.3.0
Checking data folder ../Database/Common/Data/test_settings/files: OK
Git revision tag: 4be19c33
Starting the server on port 22252: OK
pedro@pedro-Surface-Pro-3:~/Documents/bulb/application/Backend/Restify2$ 
/home/pedro/Documents/bulb/application/Backend/Restify2/index.js:18
let ModulesInstancesMap = new Map();
^^^
SyntaxError: Unexpected strict mode reserved word
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3

application/Frontend/Angular3 was launched by sudo make local-start

Installing the necessary node packages
[00:16:44] I/update - chromedriver: file exists /home/pedro/Documents/bulb/application/Frontend/Angular3/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.22linux64.zip
[00:16:44] I/update - chromedriver: unzipping chromedriver_2.22linux64.zip
[00:16:44] I/update - chromedriver: setting permissions to 0755 for /home/pedro/Documents/bulb/application/Frontend/Angular3/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.22
[00:16:44] I/update - chromedriver: v2.22 up to date
[00:16:44] I/update - selenium standalone: file exists /home/pedro/Documents/bulb/application/Frontend/Angular3/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-2.53.1.jar
[00:16:44] I/update - selenium standalone: v2.53.1 up to date
removing backup files
Stopping server: OK
Building the application using bower & grunt tasks
Running "less:components" (less) task
>> 2 stylesheets created.
>> 2 sourcemaps created.

Running "html2js:app" (html2js) task
Successfully converted 432 html templates to js.

Running "jshint:all" (jshint) task

✔ No problems


Done, without errors.


Execution Time (2016-09-26 00:16:45 UTC+1)
loading tasks                 140ms  ▇ 2%
loading grunt-contrib-less    167ms  ▇ 2%
less:components                1.8s  ▇▇▇▇▇▇▇▇▇ 26%
html2js:app                   143ms  ▇ 2%
loading grunt-contrib-jshint  104ms  ▇ 1%
jshint:all                     4.7s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 66%
Total 7s

Running "nggettext_extract:pot" (nggettext_extract) task

Done, without errors.


Execution Time (2016-09-26 00:16:52 UTC+1)
loading tasks                   93ms  ▇ 3%
loading grunt-angular-gettext  141ms  ▇▇ 4%
nggettext_extract:pot           3.1s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 93%
Total 3.3s

Running "nggettext_compile:all" (nggettext_compile) task

Done, without errors.


Execution Time (2016-09-26 00:16:56 UTC+1)
loading tasks                   94ms  ▇▇▇▇▇▇▇▇▇ 27%
loading grunt-angular-gettext  141ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇ 40%
nggettext_compile:all          113ms  ▇▇▇▇▇▇▇▇▇▇▇ 32%
Total 349ms

Starting web server on port 9000: Ok
pedro@pedro-Surface-Pro-3:~/Documents/bulb/application/Frontend/Angular3$ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment