Answer the question
In order to leave comments, you need to log in
Why does ng serve --open require webpack?
and before webpack required '@angular-devkit/architect'
ng serve --open
An unhandled exception occurred: Cannot find module 'webpack'
Require stack:
- C:\Users\Anriko\Desktop\Angular Home\sprite\node_modules\@angular -devkit\build-webpack\src\webpack\index.js
- C:\Users\Anriko\Desktop\Angular Home\sprite\node_modules\@angular-devkit\build-webpack\src\index.js
- C:\Users \Anriko\Desktop\Angular Home\sprite\node_modules\@angular-devkit\build-angular\src\builders\dev-server\index.js
- C:\Users\Anriko\AppData\Roaming\npm\node_modules\@angular \cli\node_modules\@angular-devkit\architect\node\node-modules-architect-host.js
- C:\Users\Anriko\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\architect\node\index.js
- C:\Users\Anriko\AppData\Roaming\npm\node_modules \@angular\cli\models\architect-command.js
- C:\Users\Anriko\AppData\Roaming\npm\node_modules\@angular\cli\commands\serve-impl.js
- C:\Users\Anriko\AppData \Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\schematics\tools\export-ref.js
- C:\Users\Anriko\AppData\Roaming\npm\node_modules\@angular\cli\node_modules \@angular-devkit\schematics\tools\index.js
- C:\Users\Anriko\AppData\Roaming\npm\node_modules\@angular\cli\utilities\json-schema.js
- C:\Users\Anriko\AppData \Roaming\npm\node_modules\@angular\cli\models\command-runner.js
- C:\Users\Anriko\AppData\Roaming\npm\node_modules\@angular\cli\lib\cli\index.js
- C:\Users\Anriko\AppData\Roaming\npm\node_modules\@angular\cli\lib \init.js
See "C:\Users\Anriko\AppData\Local\Temp\ng-J0dh5a\angular-errors.log" for further details.
{
"name": "sprite",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test"
},
"private": true,
"dependencies": {
"@angular/animations": "~13.0.0",
"@angular/common": "~13.0.0",
"@angular/compiler": "~13.0.0",
"@angular/core": "~13.0.0",
"@angular/forms": "~13.0.0",
"@angular/platform-browser": "~13.0.0",
"@angular/platform-browser-dynamic": "~13.0.0",
"@angular/router": "~13.0.0",
"rxjs": "~7.4.0",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/architect": "^0.1300.2",
"@angular-devkit/build-angular": "~13.0.2",
"@angular/cli": "~13.0.2",
"@angular/compiler-cli": "~13.0.0",
"@types/jasmine": "~3.10.0",
"@types/node": "^12.11.1",
"jasmine-core": "~3.10.0",
"karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "~1.7.0",
"typescript": "~4.4.3"
}
}
Answer the question
In order to leave comments, you need to log in
This is done in one go.
What does it have to do with names, names of categories? Pages are pages on the web? those are only 2000 * 50 pages?
Is this a browser add-on? Node.js? Or does it matter, the main thing is to get the signs out of the site?
Maybe not in Javascript, if there are ready-made parsers, then they will be paid.
It's not difficult to write, but again the question is - why use JS?
Write in a server language - PHP, Python, well, if you know Node.JS - but this is also a server language :)
Plus, do you also need to put it somewhere in the database?
If you mean that the site is written in Javascript - there is no difference in the implementation of the parser, you will still make requests page by page and parse HTML as a result. Although you can try to parse what the server sends and whether it gives JSON data - perhaps it will be easier. But this is almost always individual, if the site is not on some common CMS
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question