I am working through quickstart tutorial see link and got the below errors.
It is 403 forbidden error in my NGINX web server. I clicked on this top
link error and I get 403 forbidden. It is an XHR error on some
node_modules. It is having a problem with zone_symbole in zone.js. I did
copy zone.js into node_modules in NGINX web server. The quickstart worked
on the server-lite but the tutorial says copy files to NGINX which I did.
It seems needed to change the package.JSON file from server-lite to NGINX.
I did copy the zone.js from the working server-lite quickstart to the
NGINX server and then I got the error. Probably some easy fix somewhere
and it will run and i can finish tutorial. Can you help me get past the
error to run the quickstart? What is the typescript lingo for the
"scripts":serve { NGINX ....} the 8th line down? I changed the word from
lite-server to nginx and that gives the same error. Any guesses to the
other errors? THANKS
https://www.tutorialspoint.com/angular2/angular2_hello_world.htm
Failed to load resource: the server responded with a status of 403
(Forbidden)
localhost/:18 Error: (SystemJS) XHR error (403 Forbidden) loading
http://localhost:81/node_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js
Error: XHR error (403 Forbidden) loading
http://localhost:81/node_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js
at XMLHttpRequest.wrapFn [as __zone_symbol___onreadystatechange]
(http://localhost:81/node_modules/zone.js/dist/zone.js:1070:39)
at ZoneDelegate.invokeTask
(http://localhost:81/node_modules/zone.js/dist/zone.js:424:31)
at Zone.runTask
(http://localhost:81/node_modules/zone.js/dist/zone.js:191:47)
at ZoneTask.invokeTask [as invoke]
(http://localhost:81/node_modules/zone.js/dist/zone.js:499:34)
at invokeTask
(http://localhost:81/node_modules/zone.js/dist/zone.js:1349:10)
at XMLHttpRequest.globalZoneAwareCallback
(http://localhost:81/node_modules/zone.js/dist/zone.js:1358:13)
Error loading
http://localhost:81/node_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js
as "@angular/platform-browser-dynamic" from http://localhost:81/main.js
at XMLHttpRequest.wrapFn [as __zone_symbol___onreadystatechange]
(http://localhost:81/node_modules/zone.js/dist/zone.js:1070:39)
at ZoneDelegate.invokeTask
(http://localhost:81/node_modules/zone.js/dist/zone.js:424:31)
at Zone.runTask
(http://localhost:81/node_modules/zone.js/dist/zone.js:191:47)
at ZoneTask.invokeTask [as invoke]
(http://localhost:81/node_modules/zone.js/dist/zone.js:499:34)
at invokeTask
(http://localhost:81/node_modules/zone.js/dist/zone.js:1349:10)
at XMLHttpRequest.globalZoneAwareCallback
(http://localhost:81/node_modules/zone.js/dist/zone.js:1358:13)
Error loading
http://localhost:81/node_modules/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js
as "@angular/platform-browser-dynamic" from http://localhost:81/main.js
(anonymous) @ localhost/:18
:81/node_modules/@angular/core/bundles/core.umd.js Failed to load resource:
the server responded with a status of 403 (Forbidden)
:81/node_modules/@angular/platform-browser/bundles/platform-browser.umd.js
Failed to load resource: the server responded with a status of 403
(Forbidden)
package.json{
"name": "angular-quickstart",
"version": "1.0.0",
"description": "QuickStart package.json from the documentation,
supplemented with testing support",
"scripts": {
"build": "tsc -p src/",
"build:watch": "tsc -p src/ -w",
"build:e2e": "tsc -p e2e/",
"serve": "lite-server -c=bs-config.json",
"serve:e2e": "lite-server -c=bs-config.e2e.json",
"prestart": "npm run build",
"start": "concurrently \"npm run build:watch\" \"npm run serve\"",
"pree2e": "npm run build:e2e",
"e2e": "concurrently \"npm run serve:e2e\" \"npm run protractor\"
--kill-others --success first",
"preprotractor": "webdriver-manager update",
"protractor": "protractor protractor.config.js",
"pretest": "npm run build",
"test": "concurrently \"npm run build:watch\" \"karma start
karma.conf.js\"",
"pretest:once": "npm run build",
"test:once": "karma start karma.conf.js --single-run",
"lint": "tslint ./src/**/*.ts -t verbose"
},
"keywords": [],
"author": "",
"license": "MIT",
"dependencies": {
"@angular/common": "~4.0.0",
"@angular/compiler": "~4.0.0",
"@angular/core": "~4.0.0",
"@angular/forms": "~4.0.0",
"@angular/http": "~4.0.0",
"@angular/platform-browser": "~4.0.0",
"@angular/platform-browser-dynamic": "~4.0.0",
"@angular/router": "~4.0.0",
"angular-in-memory-web-api": "~0.3.0",
"systemjs": "0.19.40",
"core-js": "^2.4.1",
"rxjs": "5.0.1",
"zone.js": "^0.8.4"
},
"devDependencies": {
"concurrently": "^3.2.0",
"lite-server": "^2.2.2",
"typescript": "~2.1.0",
"canonical-path": "0.0.2",
"tslint": "^3.15.1",
"lodash": "^4.16.4",
"jasmine-core": "~2.4.1",
"karma": "^1.3.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~4.0.14",
"rimraf": "^2.5.4",
"@types/node": "^6.0.46",
"@types/jasmine": "2.5.36"
},
"repository": {}
}
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.