Angular not fetching all modules
I am trying to run an angular application but after doing ng serve i am getting the below error.
Is there a way to automatically install all these modules without manually installing them?
I ran the command and it got the node_modules directory but it is still missing these modules.
Thanks
ERROR in src/app/calendar/calendar.module.ts(16,9): error TS2554: Expected 1-2 arguments, but got 0.
src/app/cards/cards.module.ts(5,33): error TS2307: Cannot find module '@swimlane/ngx-charts'.
src/app/charts/chartist/chartist.component.ts(2,27): error TS2307: Cannot find module 'chartist'.
src/app/charts/chartist/chartist.component.ts(3,39): error TS2307: Cannot find module 'ng-chartist/dist/chartist.component'.
src/app/charts/charts.module.ts(4,30): error TS2307: Cannot find module 'ng2-charts'.
src/app/charts/charts.module.ts(5,31): error TS2307: Cannot find module 'ng-chartist'.
src/app/charts/charts.module.ts(6,33): error TS2307: Cannot find module '@swimlane/ngx-charts'.
src/app/chat-ngrx/chat-ngrx.component.ts(33,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/chat-ngrx/chat-ngrx.module.ts(5,30): error TS2307: Cannot find module 'videogular2/core'.
src/app/chat-ngrx/chat-ngrx.module.ts(6,34): error TS2307: Cannot find module 'videogular2/controls'.
src/app/chat-ngrx/chat-ngrx.module.ts(7,37): error TS2307: Cannot find module 'videogular2/overlay-play'.
src/app/chat-ngrx/chat-ngrx.module.ts(8,35): error TS2307: Cannot find module 'videogular2/buffering'.
src/app/chat/chat.component.ts(28,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/chat/chat.module.ts(4,30): error TS2307: Cannot find module 'videogular2/core'.
src/app/chat/chat.module.ts(5,34): error TS2307: Cannot find module 'videogular2/controls'.
src/app/chat/chat.module.ts(6,37): error TS2307: Cannot find module 'videogular2/overlay-play'.
src/app/chat/chat.module.ts(7,35): error TS2307: Cannot find module 'videogular2/buffering'.
src/app/components/bootstrap/carousel/carousel.component.ts(14,7): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/components/extra/drag-drop/drag-drop.component.ts(43,25): error TS2339: Property 'subscribe' does not exist on type '(groupName?: string) => Observable<{ name: string; el: Element; source: Element; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(46,25): error TS2339: Property 'subscribe' does not exist on type '(groupName?: string) => Observable<{ name: string; el: Element; target: Element; source: Element; sibling: Element; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(49,25): error TS2339: Property 'subscribe' does not exist on type '(groupName?: string) => Observable<{ name: string; el: Element; container: Element; source: Element; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(53,24): error TS2339: Property 'subscribe' does not exist on type '(groupName?: string) => Observable<{ name: string; el: Element; container: Element; source: Element; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(56,30): error TS2339: Property 'subscribe' does not exist on type '<T = any>(groupName?: string) => Observable<{ name: string; el: Element; target: Element; source: Element; sibling: Element; item: T; sourceMod
el: T; targetModel: T; sourceIndex: number; targetIndex: number; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(59,32): error TS2339: Property 'subscribe' does not exist on type '<T = any>(groupName?: string) => Observable<{ name: string; el: Element; container: Element; source: Element; item: T; sourceModel: T; source
Index: number; }>'.
src/app/components/extra/editor/editor.component.ts(5,38): error TS2307: Cannot find module 'ngx-quill/src/quill-editor.component'.
src/app/components/extra/tour/tour.component.ts(13,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/components/extra/tour/tour.component.ts(14,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/components/extra/tour/tour.component.ts(15,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/components/extra/upload/upload.component.ts(2,30): error TS2307: Cannot find module 'ng2-file-upload/ng2-file-upload'.
src/app/components/ui-components.module.ts(6,34): error TS2307: Cannot find module 'ng2-file-upload/ng2-file-upload'.
src/app/components/ui-components.module.ts(9,29): error TS2307: Cannot find module 'ngx-quill'.
src/app/components/ui-components.module.ts(12,32): error TS2307: Cannot find module 'ngx-chips'.
src/app/components/ui-components.module.ts(14,32): error TS2307: Cannot find module 'ngx-ui-switch'.
src/app/components/ui-components.module.ts(15,30): error TS2307: Cannot find module 'videogular2/core'.
src/app/components/ui-components.module.ts(16,34): error TS2307: Cannot find module 'videogular2/controls'.
src/app/components/ui-components.module.ts(17,37): error TS2307: Cannot find module 'videogular2/overlay-play'.
src/app/components/ui-components.module.ts(18,35): error TS2307: Cannot find module 'videogular2/buffering'.
src/app/customer/customer.module.ts(5,33): error TS2307: Cannot find module '@swimlane/ngx-charts'.
src/app/dashboard/analytics/analytics.component.ts(2,27): error TS2307: Cannot find module 'chartist'.
src/app/dashboard/analytics/analytics.component.ts(3,39): error TS2307: Cannot find module 'ng-chartist/dist/chartist.component'.
src/app/dashboard/dashboard.module.ts(5,32): error TS2307: Cannot find module 'ng-chartist'.
src/app/dashboard/eCommerce/eCommerce.component.ts(2,27): error TS2307: Cannot find module 'chartist'.
src/app/dashboard/eCommerce/eCommerce.component.ts(3,39): error TS2307: Cannot find module 'ng-chartist/dist/chartist.component'.
src/app/data-tables/country/country.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/customer-file/customer-file.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/customer-tariff-af/customer-tariff-af.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/customer-tariff/customer-tariff.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/data-tables.module.ts(4,36): error TS2307: Cannot find module '@swimlane/ngx-datatable'.
src/app/data-tables/filter/dt-filter.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/service-code/service-code.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/shipment/shipment.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/user-list/user-list.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/forms/forms.module.ts(7,35): error TS2307: Cannot find module 'ng2-validation'.
src/app/forms/forms.module.ts(8,34): error TS2307: Cannot find module 'ng2-archwizard'.
src/app/pages/content-pages/coming-soon/coming-soon-page.component.ts(13,9): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/pages/content-pages/coming-soon/coming-soon-page.component.ts(15,9): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/pages/full-pages/full-pages.module.ts(6,31): error TS2307: Cannot find module 'ng-chartist'.
src/app/shared/customizer/customizer.component.ts(12,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/shared/data/sweet-alerts.ts(1,18): error TS2307: Cannot find module 'sweetalert2'.
src/app/shared/notification-sidebar/notification-sidebar.component.ts(12,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/shared/shared.module.ts(7,32): error TS2307: Cannot find module 'ngx-ui-switch'.
src/app/tables/tables.module.ts(4,37): error TS2307: Cannot find module 'ng2-smart-table'.
src/app/ui-kit/syntax-highlighter/syntax-highlighter.component.ts(13,9): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/ui-kit/text-utilities/text-utilities.component.ts(13,9): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
angular
|
show 1 more comment
I am trying to run an angular application but after doing ng serve i am getting the below error.
Is there a way to automatically install all these modules without manually installing them?
I ran the command and it got the node_modules directory but it is still missing these modules.
Thanks
ERROR in src/app/calendar/calendar.module.ts(16,9): error TS2554: Expected 1-2 arguments, but got 0.
src/app/cards/cards.module.ts(5,33): error TS2307: Cannot find module '@swimlane/ngx-charts'.
src/app/charts/chartist/chartist.component.ts(2,27): error TS2307: Cannot find module 'chartist'.
src/app/charts/chartist/chartist.component.ts(3,39): error TS2307: Cannot find module 'ng-chartist/dist/chartist.component'.
src/app/charts/charts.module.ts(4,30): error TS2307: Cannot find module 'ng2-charts'.
src/app/charts/charts.module.ts(5,31): error TS2307: Cannot find module 'ng-chartist'.
src/app/charts/charts.module.ts(6,33): error TS2307: Cannot find module '@swimlane/ngx-charts'.
src/app/chat-ngrx/chat-ngrx.component.ts(33,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/chat-ngrx/chat-ngrx.module.ts(5,30): error TS2307: Cannot find module 'videogular2/core'.
src/app/chat-ngrx/chat-ngrx.module.ts(6,34): error TS2307: Cannot find module 'videogular2/controls'.
src/app/chat-ngrx/chat-ngrx.module.ts(7,37): error TS2307: Cannot find module 'videogular2/overlay-play'.
src/app/chat-ngrx/chat-ngrx.module.ts(8,35): error TS2307: Cannot find module 'videogular2/buffering'.
src/app/chat/chat.component.ts(28,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/chat/chat.module.ts(4,30): error TS2307: Cannot find module 'videogular2/core'.
src/app/chat/chat.module.ts(5,34): error TS2307: Cannot find module 'videogular2/controls'.
src/app/chat/chat.module.ts(6,37): error TS2307: Cannot find module 'videogular2/overlay-play'.
src/app/chat/chat.module.ts(7,35): error TS2307: Cannot find module 'videogular2/buffering'.
src/app/components/bootstrap/carousel/carousel.component.ts(14,7): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/components/extra/drag-drop/drag-drop.component.ts(43,25): error TS2339: Property 'subscribe' does not exist on type '(groupName?: string) => Observable<{ name: string; el: Element; source: Element; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(46,25): error TS2339: Property 'subscribe' does not exist on type '(groupName?: string) => Observable<{ name: string; el: Element; target: Element; source: Element; sibling: Element; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(49,25): error TS2339: Property 'subscribe' does not exist on type '(groupName?: string) => Observable<{ name: string; el: Element; container: Element; source: Element; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(53,24): error TS2339: Property 'subscribe' does not exist on type '(groupName?: string) => Observable<{ name: string; el: Element; container: Element; source: Element; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(56,30): error TS2339: Property 'subscribe' does not exist on type '<T = any>(groupName?: string) => Observable<{ name: string; el: Element; target: Element; source: Element; sibling: Element; item: T; sourceMod
el: T; targetModel: T; sourceIndex: number; targetIndex: number; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(59,32): error TS2339: Property 'subscribe' does not exist on type '<T = any>(groupName?: string) => Observable<{ name: string; el: Element; container: Element; source: Element; item: T; sourceModel: T; source
Index: number; }>'.
src/app/components/extra/editor/editor.component.ts(5,38): error TS2307: Cannot find module 'ngx-quill/src/quill-editor.component'.
src/app/components/extra/tour/tour.component.ts(13,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/components/extra/tour/tour.component.ts(14,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/components/extra/tour/tour.component.ts(15,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/components/extra/upload/upload.component.ts(2,30): error TS2307: Cannot find module 'ng2-file-upload/ng2-file-upload'.
src/app/components/ui-components.module.ts(6,34): error TS2307: Cannot find module 'ng2-file-upload/ng2-file-upload'.
src/app/components/ui-components.module.ts(9,29): error TS2307: Cannot find module 'ngx-quill'.
src/app/components/ui-components.module.ts(12,32): error TS2307: Cannot find module 'ngx-chips'.
src/app/components/ui-components.module.ts(14,32): error TS2307: Cannot find module 'ngx-ui-switch'.
src/app/components/ui-components.module.ts(15,30): error TS2307: Cannot find module 'videogular2/core'.
src/app/components/ui-components.module.ts(16,34): error TS2307: Cannot find module 'videogular2/controls'.
src/app/components/ui-components.module.ts(17,37): error TS2307: Cannot find module 'videogular2/overlay-play'.
src/app/components/ui-components.module.ts(18,35): error TS2307: Cannot find module 'videogular2/buffering'.
src/app/customer/customer.module.ts(5,33): error TS2307: Cannot find module '@swimlane/ngx-charts'.
src/app/dashboard/analytics/analytics.component.ts(2,27): error TS2307: Cannot find module 'chartist'.
src/app/dashboard/analytics/analytics.component.ts(3,39): error TS2307: Cannot find module 'ng-chartist/dist/chartist.component'.
src/app/dashboard/dashboard.module.ts(5,32): error TS2307: Cannot find module 'ng-chartist'.
src/app/dashboard/eCommerce/eCommerce.component.ts(2,27): error TS2307: Cannot find module 'chartist'.
src/app/dashboard/eCommerce/eCommerce.component.ts(3,39): error TS2307: Cannot find module 'ng-chartist/dist/chartist.component'.
src/app/data-tables/country/country.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/customer-file/customer-file.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/customer-tariff-af/customer-tariff-af.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/customer-tariff/customer-tariff.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/data-tables.module.ts(4,36): error TS2307: Cannot find module '@swimlane/ngx-datatable'.
src/app/data-tables/filter/dt-filter.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/service-code/service-code.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/shipment/shipment.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/user-list/user-list.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/forms/forms.module.ts(7,35): error TS2307: Cannot find module 'ng2-validation'.
src/app/forms/forms.module.ts(8,34): error TS2307: Cannot find module 'ng2-archwizard'.
src/app/pages/content-pages/coming-soon/coming-soon-page.component.ts(13,9): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/pages/content-pages/coming-soon/coming-soon-page.component.ts(15,9): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/pages/full-pages/full-pages.module.ts(6,31): error TS2307: Cannot find module 'ng-chartist'.
src/app/shared/customizer/customizer.component.ts(12,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/shared/data/sweet-alerts.ts(1,18): error TS2307: Cannot find module 'sweetalert2'.
src/app/shared/notification-sidebar/notification-sidebar.component.ts(12,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/shared/shared.module.ts(7,32): error TS2307: Cannot find module 'ngx-ui-switch'.
src/app/tables/tables.module.ts(4,37): error TS2307: Cannot find module 'ng2-smart-table'.
src/app/ui-kit/syntax-highlighter/syntax-highlighter.component.ts(13,9): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/ui-kit/text-utilities/text-utilities.component.ts(13,9): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
angular
head the the main root where the package.json is in terminal and runnpm install
– dince12
Nov 14 '18 at 9:30
you have to do npm install where you have package.json but keep an eye on the console to see if there are any errors.
– Ali Turab Abbasi
Nov 14 '18 at 9:36
i did npm install but it didnot install anything new. below is the console
– user3855851
Nov 14 '18 at 9:49
D:angularnew2angularnew3>npm install npm WARN @agm/core@1.0.0-beta.5 requires a peer of @angular/common@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.
– user3855851
Nov 14 '18 at 9:50
npm WARN @agm/core@1.0.0-beta.5 requires a peer of @angular/core@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @ngrx/store@6.1.2 requires a peer of @angular/core@^6.0.0 but none is installed. You must install peer dependencies yourself.
– user3855851
Nov 14 '18 at 9:51
|
show 1 more comment
I am trying to run an angular application but after doing ng serve i am getting the below error.
Is there a way to automatically install all these modules without manually installing them?
I ran the command and it got the node_modules directory but it is still missing these modules.
Thanks
ERROR in src/app/calendar/calendar.module.ts(16,9): error TS2554: Expected 1-2 arguments, but got 0.
src/app/cards/cards.module.ts(5,33): error TS2307: Cannot find module '@swimlane/ngx-charts'.
src/app/charts/chartist/chartist.component.ts(2,27): error TS2307: Cannot find module 'chartist'.
src/app/charts/chartist/chartist.component.ts(3,39): error TS2307: Cannot find module 'ng-chartist/dist/chartist.component'.
src/app/charts/charts.module.ts(4,30): error TS2307: Cannot find module 'ng2-charts'.
src/app/charts/charts.module.ts(5,31): error TS2307: Cannot find module 'ng-chartist'.
src/app/charts/charts.module.ts(6,33): error TS2307: Cannot find module '@swimlane/ngx-charts'.
src/app/chat-ngrx/chat-ngrx.component.ts(33,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/chat-ngrx/chat-ngrx.module.ts(5,30): error TS2307: Cannot find module 'videogular2/core'.
src/app/chat-ngrx/chat-ngrx.module.ts(6,34): error TS2307: Cannot find module 'videogular2/controls'.
src/app/chat-ngrx/chat-ngrx.module.ts(7,37): error TS2307: Cannot find module 'videogular2/overlay-play'.
src/app/chat-ngrx/chat-ngrx.module.ts(8,35): error TS2307: Cannot find module 'videogular2/buffering'.
src/app/chat/chat.component.ts(28,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/chat/chat.module.ts(4,30): error TS2307: Cannot find module 'videogular2/core'.
src/app/chat/chat.module.ts(5,34): error TS2307: Cannot find module 'videogular2/controls'.
src/app/chat/chat.module.ts(6,37): error TS2307: Cannot find module 'videogular2/overlay-play'.
src/app/chat/chat.module.ts(7,35): error TS2307: Cannot find module 'videogular2/buffering'.
src/app/components/bootstrap/carousel/carousel.component.ts(14,7): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/components/extra/drag-drop/drag-drop.component.ts(43,25): error TS2339: Property 'subscribe' does not exist on type '(groupName?: string) => Observable<{ name: string; el: Element; source: Element; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(46,25): error TS2339: Property 'subscribe' does not exist on type '(groupName?: string) => Observable<{ name: string; el: Element; target: Element; source: Element; sibling: Element; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(49,25): error TS2339: Property 'subscribe' does not exist on type '(groupName?: string) => Observable<{ name: string; el: Element; container: Element; source: Element; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(53,24): error TS2339: Property 'subscribe' does not exist on type '(groupName?: string) => Observable<{ name: string; el: Element; container: Element; source: Element; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(56,30): error TS2339: Property 'subscribe' does not exist on type '<T = any>(groupName?: string) => Observable<{ name: string; el: Element; target: Element; source: Element; sibling: Element; item: T; sourceMod
el: T; targetModel: T; sourceIndex: number; targetIndex: number; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(59,32): error TS2339: Property 'subscribe' does not exist on type '<T = any>(groupName?: string) => Observable<{ name: string; el: Element; container: Element; source: Element; item: T; sourceModel: T; source
Index: number; }>'.
src/app/components/extra/editor/editor.component.ts(5,38): error TS2307: Cannot find module 'ngx-quill/src/quill-editor.component'.
src/app/components/extra/tour/tour.component.ts(13,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/components/extra/tour/tour.component.ts(14,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/components/extra/tour/tour.component.ts(15,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/components/extra/upload/upload.component.ts(2,30): error TS2307: Cannot find module 'ng2-file-upload/ng2-file-upload'.
src/app/components/ui-components.module.ts(6,34): error TS2307: Cannot find module 'ng2-file-upload/ng2-file-upload'.
src/app/components/ui-components.module.ts(9,29): error TS2307: Cannot find module 'ngx-quill'.
src/app/components/ui-components.module.ts(12,32): error TS2307: Cannot find module 'ngx-chips'.
src/app/components/ui-components.module.ts(14,32): error TS2307: Cannot find module 'ngx-ui-switch'.
src/app/components/ui-components.module.ts(15,30): error TS2307: Cannot find module 'videogular2/core'.
src/app/components/ui-components.module.ts(16,34): error TS2307: Cannot find module 'videogular2/controls'.
src/app/components/ui-components.module.ts(17,37): error TS2307: Cannot find module 'videogular2/overlay-play'.
src/app/components/ui-components.module.ts(18,35): error TS2307: Cannot find module 'videogular2/buffering'.
src/app/customer/customer.module.ts(5,33): error TS2307: Cannot find module '@swimlane/ngx-charts'.
src/app/dashboard/analytics/analytics.component.ts(2,27): error TS2307: Cannot find module 'chartist'.
src/app/dashboard/analytics/analytics.component.ts(3,39): error TS2307: Cannot find module 'ng-chartist/dist/chartist.component'.
src/app/dashboard/dashboard.module.ts(5,32): error TS2307: Cannot find module 'ng-chartist'.
src/app/dashboard/eCommerce/eCommerce.component.ts(2,27): error TS2307: Cannot find module 'chartist'.
src/app/dashboard/eCommerce/eCommerce.component.ts(3,39): error TS2307: Cannot find module 'ng-chartist/dist/chartist.component'.
src/app/data-tables/country/country.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/customer-file/customer-file.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/customer-tariff-af/customer-tariff-af.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/customer-tariff/customer-tariff.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/data-tables.module.ts(4,36): error TS2307: Cannot find module '@swimlane/ngx-datatable'.
src/app/data-tables/filter/dt-filter.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/service-code/service-code.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/shipment/shipment.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/user-list/user-list.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/forms/forms.module.ts(7,35): error TS2307: Cannot find module 'ng2-validation'.
src/app/forms/forms.module.ts(8,34): error TS2307: Cannot find module 'ng2-archwizard'.
src/app/pages/content-pages/coming-soon/coming-soon-page.component.ts(13,9): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/pages/content-pages/coming-soon/coming-soon-page.component.ts(15,9): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/pages/full-pages/full-pages.module.ts(6,31): error TS2307: Cannot find module 'ng-chartist'.
src/app/shared/customizer/customizer.component.ts(12,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/shared/data/sweet-alerts.ts(1,18): error TS2307: Cannot find module 'sweetalert2'.
src/app/shared/notification-sidebar/notification-sidebar.component.ts(12,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/shared/shared.module.ts(7,32): error TS2307: Cannot find module 'ngx-ui-switch'.
src/app/tables/tables.module.ts(4,37): error TS2307: Cannot find module 'ng2-smart-table'.
src/app/ui-kit/syntax-highlighter/syntax-highlighter.component.ts(13,9): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/ui-kit/text-utilities/text-utilities.component.ts(13,9): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
angular
I am trying to run an angular application but after doing ng serve i am getting the below error.
Is there a way to automatically install all these modules without manually installing them?
I ran the command and it got the node_modules directory but it is still missing these modules.
Thanks
ERROR in src/app/calendar/calendar.module.ts(16,9): error TS2554: Expected 1-2 arguments, but got 0.
src/app/cards/cards.module.ts(5,33): error TS2307: Cannot find module '@swimlane/ngx-charts'.
src/app/charts/chartist/chartist.component.ts(2,27): error TS2307: Cannot find module 'chartist'.
src/app/charts/chartist/chartist.component.ts(3,39): error TS2307: Cannot find module 'ng-chartist/dist/chartist.component'.
src/app/charts/charts.module.ts(4,30): error TS2307: Cannot find module 'ng2-charts'.
src/app/charts/charts.module.ts(5,31): error TS2307: Cannot find module 'ng-chartist'.
src/app/charts/charts.module.ts(6,33): error TS2307: Cannot find module '@swimlane/ngx-charts'.
src/app/chat-ngrx/chat-ngrx.component.ts(33,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/chat-ngrx/chat-ngrx.module.ts(5,30): error TS2307: Cannot find module 'videogular2/core'.
src/app/chat-ngrx/chat-ngrx.module.ts(6,34): error TS2307: Cannot find module 'videogular2/controls'.
src/app/chat-ngrx/chat-ngrx.module.ts(7,37): error TS2307: Cannot find module 'videogular2/overlay-play'.
src/app/chat-ngrx/chat-ngrx.module.ts(8,35): error TS2307: Cannot find module 'videogular2/buffering'.
src/app/chat/chat.component.ts(28,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/chat/chat.module.ts(4,30): error TS2307: Cannot find module 'videogular2/core'.
src/app/chat/chat.module.ts(5,34): error TS2307: Cannot find module 'videogular2/controls'.
src/app/chat/chat.module.ts(6,37): error TS2307: Cannot find module 'videogular2/overlay-play'.
src/app/chat/chat.module.ts(7,35): error TS2307: Cannot find module 'videogular2/buffering'.
src/app/components/bootstrap/carousel/carousel.component.ts(14,7): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/components/extra/drag-drop/drag-drop.component.ts(43,25): error TS2339: Property 'subscribe' does not exist on type '(groupName?: string) => Observable<{ name: string; el: Element; source: Element; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(46,25): error TS2339: Property 'subscribe' does not exist on type '(groupName?: string) => Observable<{ name: string; el: Element; target: Element; source: Element; sibling: Element; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(49,25): error TS2339: Property 'subscribe' does not exist on type '(groupName?: string) => Observable<{ name: string; el: Element; container: Element; source: Element; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(53,24): error TS2339: Property 'subscribe' does not exist on type '(groupName?: string) => Observable<{ name: string; el: Element; container: Element; source: Element; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(56,30): error TS2339: Property 'subscribe' does not exist on type '<T = any>(groupName?: string) => Observable<{ name: string; el: Element; target: Element; source: Element; sibling: Element; item: T; sourceMod
el: T; targetModel: T; sourceIndex: number; targetIndex: number; }>'.
src/app/components/extra/drag-drop/drag-drop.component.ts(59,32): error TS2339: Property 'subscribe' does not exist on type '<T = any>(groupName?: string) => Observable<{ name: string; el: Element; container: Element; source: Element; item: T; sourceModel: T; source
Index: number; }>'.
src/app/components/extra/editor/editor.component.ts(5,38): error TS2307: Cannot find module 'ngx-quill/src/quill-editor.component'.
src/app/components/extra/tour/tour.component.ts(13,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/components/extra/tour/tour.component.ts(14,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/components/extra/tour/tour.component.ts(15,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/components/extra/upload/upload.component.ts(2,30): error TS2307: Cannot find module 'ng2-file-upload/ng2-file-upload'.
src/app/components/ui-components.module.ts(6,34): error TS2307: Cannot find module 'ng2-file-upload/ng2-file-upload'.
src/app/components/ui-components.module.ts(9,29): error TS2307: Cannot find module 'ngx-quill'.
src/app/components/ui-components.module.ts(12,32): error TS2307: Cannot find module 'ngx-chips'.
src/app/components/ui-components.module.ts(14,32): error TS2307: Cannot find module 'ngx-ui-switch'.
src/app/components/ui-components.module.ts(15,30): error TS2307: Cannot find module 'videogular2/core'.
src/app/components/ui-components.module.ts(16,34): error TS2307: Cannot find module 'videogular2/controls'.
src/app/components/ui-components.module.ts(17,37): error TS2307: Cannot find module 'videogular2/overlay-play'.
src/app/components/ui-components.module.ts(18,35): error TS2307: Cannot find module 'videogular2/buffering'.
src/app/customer/customer.module.ts(5,33): error TS2307: Cannot find module '@swimlane/ngx-charts'.
src/app/dashboard/analytics/analytics.component.ts(2,27): error TS2307: Cannot find module 'chartist'.
src/app/dashboard/analytics/analytics.component.ts(3,39): error TS2307: Cannot find module 'ng-chartist/dist/chartist.component'.
src/app/dashboard/dashboard.module.ts(5,32): error TS2307: Cannot find module 'ng-chartist'.
src/app/dashboard/eCommerce/eCommerce.component.ts(2,27): error TS2307: Cannot find module 'chartist'.
src/app/dashboard/eCommerce/eCommerce.component.ts(3,39): error TS2307: Cannot find module 'ng-chartist/dist/chartist.component'.
src/app/data-tables/country/country.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/customer-file/customer-file.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/customer-tariff-af/customer-tariff-af.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/customer-tariff/customer-tariff.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/data-tables.module.ts(4,36): error TS2307: Cannot find module '@swimlane/ngx-datatable'.
src/app/data-tables/filter/dt-filter.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/service-code/service-code.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/shipment/shipment.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/data-tables/user-list/user-list.component.ts(2,36): error TS2307: Cannot find module '@swimlane/ngx-datatable/release'.
src/app/forms/forms.module.ts(7,35): error TS2307: Cannot find module 'ng2-validation'.
src/app/forms/forms.module.ts(8,34): error TS2307: Cannot find module 'ng2-archwizard'.
src/app/pages/content-pages/coming-soon/coming-soon-page.component.ts(13,9): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/pages/content-pages/coming-soon/coming-soon-page.component.ts(15,9): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/pages/full-pages/full-pages.module.ts(6,31): error TS2307: Cannot find module 'ng-chartist'.
src/app/shared/customizer/customizer.component.ts(12,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/shared/data/sweet-alerts.ts(1,18): error TS2307: Cannot find module 'sweetalert2'.
src/app/shared/notification-sidebar/notification-sidebar.component.ts(12,5): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/shared/shared.module.ts(7,32): error TS2307: Cannot find module 'ngx-ui-switch'.
src/app/tables/tables.module.ts(4,37): error TS2307: Cannot find module 'ng2-smart-table'.
src/app/ui-kit/syntax-highlighter/syntax-highlighter.component.ts(13,9): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
src/app/ui-kit/text-utilities/text-utilities.component.ts(13,9): error TS2581: Cannot find name '$'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`.
angular
angular
asked Nov 14 '18 at 9:24
user3855851user3855851
327
327
head the the main root where the package.json is in terminal and runnpm install
– dince12
Nov 14 '18 at 9:30
you have to do npm install where you have package.json but keep an eye on the console to see if there are any errors.
– Ali Turab Abbasi
Nov 14 '18 at 9:36
i did npm install but it didnot install anything new. below is the console
– user3855851
Nov 14 '18 at 9:49
D:angularnew2angularnew3>npm install npm WARN @agm/core@1.0.0-beta.5 requires a peer of @angular/common@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.
– user3855851
Nov 14 '18 at 9:50
npm WARN @agm/core@1.0.0-beta.5 requires a peer of @angular/core@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @ngrx/store@6.1.2 requires a peer of @angular/core@^6.0.0 but none is installed. You must install peer dependencies yourself.
– user3855851
Nov 14 '18 at 9:51
|
show 1 more comment
head the the main root where the package.json is in terminal and runnpm install
– dince12
Nov 14 '18 at 9:30
you have to do npm install where you have package.json but keep an eye on the console to see if there are any errors.
– Ali Turab Abbasi
Nov 14 '18 at 9:36
i did npm install but it didnot install anything new. below is the console
– user3855851
Nov 14 '18 at 9:49
D:angularnew2angularnew3>npm install npm WARN @agm/core@1.0.0-beta.5 requires a peer of @angular/common@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.
– user3855851
Nov 14 '18 at 9:50
npm WARN @agm/core@1.0.0-beta.5 requires a peer of @angular/core@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @ngrx/store@6.1.2 requires a peer of @angular/core@^6.0.0 but none is installed. You must install peer dependencies yourself.
– user3855851
Nov 14 '18 at 9:51
head the the main root where the package.json is in terminal and run
npm install
– dince12
Nov 14 '18 at 9:30
head the the main root where the package.json is in terminal and run
npm install
– dince12
Nov 14 '18 at 9:30
you have to do npm install where you have package.json but keep an eye on the console to see if there are any errors.
– Ali Turab Abbasi
Nov 14 '18 at 9:36
you have to do npm install where you have package.json but keep an eye on the console to see if there are any errors.
– Ali Turab Abbasi
Nov 14 '18 at 9:36
i did npm install but it didnot install anything new. below is the console
– user3855851
Nov 14 '18 at 9:49
i did npm install but it didnot install anything new. below is the console
– user3855851
Nov 14 '18 at 9:49
D:angularnew2angularnew3>npm install npm WARN @agm/core@1.0.0-beta.5 requires a peer of @angular/common@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.
– user3855851
Nov 14 '18 at 9:50
D:angularnew2angularnew3>npm install npm WARN @agm/core@1.0.0-beta.5 requires a peer of @angular/common@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.
– user3855851
Nov 14 '18 at 9:50
npm WARN @agm/core@1.0.0-beta.5 requires a peer of @angular/core@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @ngrx/store@6.1.2 requires a peer of @angular/core@^6.0.0 but none is installed. You must install peer dependencies yourself.
– user3855851
Nov 14 '18 at 9:51
npm WARN @agm/core@1.0.0-beta.5 requires a peer of @angular/core@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @ngrx/store@6.1.2 requires a peer of @angular/core@^6.0.0 but none is installed. You must install peer dependencies yourself.
– user3855851
Nov 14 '18 at 9:51
|
show 1 more comment
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53296775%2fangular-not-fetching-all-modules%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53296775%2fangular-not-fetching-all-modules%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
head the the main root where the package.json is in terminal and run
npm install
– dince12
Nov 14 '18 at 9:30
you have to do npm install where you have package.json but keep an eye on the console to see if there are any errors.
– Ali Turab Abbasi
Nov 14 '18 at 9:36
i did npm install but it didnot install anything new. below is the console
– user3855851
Nov 14 '18 at 9:49
D:angularnew2angularnew3>npm install npm WARN @agm/core@1.0.0-beta.5 requires a peer of @angular/common@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.
– user3855851
Nov 14 '18 at 9:50
npm WARN @agm/core@1.0.0-beta.5 requires a peer of @angular/core@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @ngrx/store@6.1.2 requires a peer of @angular/core@^6.0.0 but none is installed. You must install peer dependencies yourself.
– user3855851
Nov 14 '18 at 9:51