javascript - reparar - yarn
npm WARN... requiere un par de... pero ninguno está instalado. Debe instalar las dependencias de pares usted mismo (6)
Traté de ejecutar un proyecto descargado de
github
.
Desafortunadamente, durante la
npm install
las siguientes advertencias.
Traté de cambiar la versión basada en esta
question
.
Sin embargo, tuve un problema, porque algunos paquetes requieren varias versiones de otros paquetes.
Considere estas dos líneas:
npm WARN @angular/[email protected] requires a peer of @angular/core@^4.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
Por lo tanto, la instalación de algunos paquetes hace que la lista de dependencias crezca sustancialmente.
¿Alguien tiene una solución?
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/core@^4.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/common@^4.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/core@^4.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/common@^4.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @angular/compiler@^2.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@^3.1.0 but none is installed. You must install peer dependencies yourself.
Aquí están los contenidos de
package.json
:
{
"name": "fireplace",
"version": "0.0.0",
"license": "MIT",
"angular-cli": {},
"scripts": {
"ng": "ng",
"start": "ng serve",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"repository": {
"type": "git",
"url": "https://github.com/name/fireplace.git"
},
"author": "name",
"bugs": {
"url": "https://github.com/name/fireplace/issues"
},
"homepage": "https://github.com/name/fireplace",
"private": true,
"dependencies": {
"@angular/animations": "^4.0.0-rc.2",
"@angular/common": "^4.0.0-rc.2",
"@angular/compiler": "^4.0.0-rc.2",
"@angular/compiler-cli": "^4.0.0-rc.2",
"@angular/core": "^4.0.0-rc.2",
"@angular/flex-layout": "^2.0.0-rc.1",
"@angular/forms": "^4.0.0-rc.2",
"@angular/http": "^4.0.0-rc.2",
"@angular/material": "^2.0.0-beta.2",
"@angular/platform-browser": "^4.0.0-rc.2",
"@angular/platform-browser-dynamic": "^4.0.0-rc.2",
"@angular/platform-server": "^4.0.0-rc.2",
"@angular/router": "^4.0.0-rc.2",
"@types/lodash": "^4.14.53",
"angular2-google-maps": "^0.17.0",
"angular2-moment": "^1.2.0",
"angularfire2": "^2.0.0-beta.8",
"core-js": "^2.4.1",
"d3": "^4.7.1",
"d3-cloud": "^1.2.4",
"firebase": "^3.6.10",
"hammerjs": "^2.0.8",
"lodash": "^4.17.4",
"rxjs": "^5.2.0",
"ts-helpers": "^1.1.1",
"zone.js": "^0.7.6"
},
"devDependencies": {
"@angular/cli": "^1.0.0-rc.1",
"@angular/compiler-cli": "^2.4.0",
"@types/jasmine": "2.5.38",
"@types/node": "~6.0.60",
"codelyzer": "~2.0.0",
"jasmine-core": "2.5.2",
"karma": "~1.4.1",
"karma-chrome-launcher": "~2.0.0",
"karma-cli": "~1.0.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"karma-coverage-istanbul-reporter": "^0.2.1",
"protractor": "~5.1.0",
"ts-node": "~2.0.0",
"tslint": "~4.4.2",
"typescript": "^2.2.1",
"webpack": "^2.2.1"
}
}
ng serve
return (pegué solo el principio y el final):
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/bidi/index.d.ts (8,99): Cannot find module ''@angular/cdk/bidi''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/portal/portal.d.ts (8,85): Cannot find module ''@angular/cdk/portal''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/portal/portal-directives.d.ts (8,76): Cannot find module ''@angular/cdk/portal''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/portal/dom-portal-host.d.ts (8,31): Cannot find module ''@angular/cdk/portal''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/ripple/ripple-renderer.d.ts (9,26): Cannot find module ''@angular/cdk/platform''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/ripple/ripple-renderer.d.ts (10,31): Cannot find module ''@angular/cdk/scrolling''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/ripple/ripple.d.ts (9,31): Cannot find module ''@angular/cdk/scrolling''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/ripple/ripple.d.ts (10,26): Cannot find module ''@angular/cdk/platform''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/platform/platform.d.ts (8,26): Cannot find module ''@angular/cdk/platform''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/keyboard/keycodes.d.ts (8,146): Cannot find module ''@angular/cdk/keycodes''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/core.d.ts (1,61): Cannot find module ''@angular/cdk/coercion''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/core.d.ts (2,49): Cannot find module ''@angular/cdk/observers''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/core.d.ts (3,32): Cannot find module ''@angular/cdk/collections''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/core.d.ts (9,15): Cannot find module ''@angular/cdk/platform''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/core.d.ts (10,15): Cannot find module ''@angular/cdk/overlay''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/core.d.ts (14,252): Cannot find module ''@angular/cdk/a11y''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/autocomplete/autocomplete.d.ts (10,44): Cannot find module ''@angular/cdk/a11y''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/autocomplete/autocomplete-trigger.d.ts (10,32): Cannot find module ''@angular/cdk/bidi''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/autocomplete/autocomplete-trigger.d.ts (11,67): Cannot find module ''@angular/cdk/overlay''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/button/button.d.ts (9,26): Cannot find module ''@angular/cdk/platform''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/a11y/focus-key-manager.d.ts (8,50): Cannot find module ''@angular/cdk/a11y''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/chips/chip-list.d.ts (10,33): Cannot find module ''@angular/cdk/a11y''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/chips/chip-list.d.ts (11,32): Cannot find module ''@angular/cdk/bidi''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/dialog/dialog-config.d.ts (9,27): Cannot find module ''@angular/cdk/bidi''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/dialog/dialog-container.d.ts (10,86): Cannot find module ''@angular/cdk/portal''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/dialog/dialog-container.d.ts (11,34): Cannot find module ''@angular/cdk/a11y''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/dialog/dialog-ref.d.ts (8,28): Cannot find module ''@angular/cdk/overlay''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/dialog/dialog.d.ts (10,31): Cannot find module ''@angular/cdk/portal''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/dialog/dialog.d.ts (11,62): Cannot find module ''@angular/cdk/overlay''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/datepicker/datepicker.d.ts (9,67): Cannot find module ''@angular/cdk/overlay''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/datepicker/datepicker.d.ts (10,32): Cannot find module ''@angular/cdk/bidi''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/grid-list/grid-list.d.ts (10,32): Cannot find module ''@angular/cdk/bidi''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/input/autosize.d.ts (10,26): Cannot find module ''@angular/cdk/platform''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/input/input.d.ts (10,26): Cannot find module ''@angular/cdk/platform''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/menu/menu-panel.d.ts (10,27): Cannot find module ''@angular/cdk/bidi''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/menu/menu-directive.d.ts (14,27): Cannot find module ''@angular/cdk/bidi''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/menu/menu-trigger.d.ts (9,43): Cannot find module ''@angular/cdk/bidi''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/menu/menu-trigger.d.ts (10,67): Cannot find module ''@angular/cdk/overlay''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/select/select.d.ts (10,33): Cannot find module ''@angular/cdk/a11y''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/select/select.d.ts (11,32): Cannot find module ''@angular/cdk/bidi''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/select/select.d.ts (12,109): Cannot find module ''@angular/cdk/overlay''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/select/select.d.ts (14,32): Cannot find module ''@angular/cdk/collections''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/select/select.d.ts (19,26): Cannot find module ''@angular/cdk/platform''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/core/a11y/focus-trap.d.ts (8,95): Cannot find module ''@angular/cdk/a11y''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/slider/slider.d.ts (10,32): Cannot find module ''@angular/cdk/bidi''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/slide-toggle/slide-toggle.d.ts (9,26): Cannot find module ''@angular/cdk/platform''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/snack-bar/snack-bar-config.d.ts (9,36): Cannot find module ''@angular/cdk/a11y''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/snack-bar/snack-bar-config.d.ts (10,27): Cannot find module ''@angular/cdk/bidi''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/snack-bar/snack-bar-container.d.ts (10,70): Cannot find module ''@angular/cdk/portal''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/snack-bar/snack-bar-ref.d.ts (8,28): Cannot find module ''@angular/cdk/overlay''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/snack-bar/snack-bar.d.ts (9,25): Cannot find module ''@angular/cdk/overlay''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/snack-bar/snack-bar.d.ts (10,31): Cannot find module ''@angular/cdk/portal''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/snack-bar/snack-bar.d.ts (11,31): Cannot find module ''@angular/cdk/a11y''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/sort/sort-header.d.ts (9,30): Cannot find module ''@angular/cdk/table''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/table/cell.d.ts (9,84): Cannot find module ''@angular/cdk/table''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/table/table.d.ts (1,26): Cannot find module ''@angular/cdk/table''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/table/row.d.ts (1,66): Cannot find module ''@angular/cdk/table''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/tabs/tab-label.d.ts (9,41): Cannot find module ''@angular/cdk/portal''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/tabs/tab-body.d.ts (10,53): Cannot find module ''@angular/cdk/portal''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/tabs/tab-body.d.ts (11,43): Cannot find module ''@angular/cdk/bidi''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/tabs/tab-header.d.ts (9,43): Cannot find module ''@angular/cdk/bidi''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/tabs/tab-nav-bar/tab-nav-bar.d.ts (9,31): Cannot find module ''@angular/cdk/scrolling''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/tabs/tab-nav-bar/tab-nav-bar.d.ts (10,32): Cannot find module ''@angular/cdk/bidi''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/tabs/tab-nav-bar/tab-nav-bar.d.ts (11,26): Cannot find module ''@angular/cdk/platform''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/tooltip/tooltip.d.ts (10,34): Cannot find module ''@angular/cdk/scrolling''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/tooltip/tooltip.d.ts (12,32): Cannot find module ''@angular/cdk/bidi''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/tooltip/tooltip.d.ts (13,26): Cannot find module ''@angular/cdk/platform''.
ERROR in /Users/username/Projects/fireplace/node_modules/@angular/material/typings/tooltip/tooltip.d.ts (14,132): Cannot find module ''@angular/cdk/overlay''.
ERROR in /Users/username/Projects/fireplace/src/auth/auth.module.ts (24,24): Property ''forRoot'' does not exist on type ''typeof MaterialModule''.
ERROR in /Users/username/Projects/fireplace/src/common/data.model.ts (25,14): Type ''Feed'' has no properties in common with type ''IFeed''.
ERROR in /Users/username/Projects/fireplace/src/common/data.model.ts (32,14): Type ''Like'' has no properties in common with type ''ILike''.
ERROR in /Users/username/Projects/fireplace/src/common/data.model.ts (39,14): Type ''Follower'' has no properties in common with type ''IFollower''.
ERROR in /Users/username/Projects/fireplace/src/sign-in/sign-in.module.ts (21,24): Property ''forRoot'' does not exist on type ''typeof MaterialModule''.
ERROR in /Users/username/Projects/fireplace/src/word-cloud/word-cloud.component.ts (192,25): Property ''items'' does not exist on type ''{}''.
ERROR in /Users/username/Projects/fireplace/src/word-cloud/word-cloud.component.ts (192,51): Property ''items'' does not exist on type ''{}''.
ERROR in Error encountered resolving symbol values statically. Calling function ''OpaqueToken'', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol FirebaseUserConfig in /Users/username/Projects/fireplace/node_modules/angularfire2/tokens.d.ts, resolving symbol AngularFireModule.initializeApp in /Users/username/Projects/fireplace/node_modules/angularfire2/angularfire2.d.ts, resolving symbol FirebaseModule in /Users/username/Projects/fireplace/src/firebase/firebase.module.ts, resolving symbol AppModule in /Users/username/Projects/fireplace/src/app/app.module.ts, resolving symbol AppModule in /Users/username/Projects/fireplace/src/app/app.module.ts
ERROR in ./node_modules/@angular/material/@angular/material.es5.js
Module not found: Error: Can''t resolve ''@angular/cdk/a11y'' in ''/Users/username/Projects/fireplace/node_modules/@angular/material/@angular''
resolve ''@angular/cdk/a11y'' in ''/Users/username/Projects/fireplace/node_modules/@angular/material/@angular''
Parsed request is a module
using description file: /Users/username/Projects/fireplace/node_modules/@angular/material/package.json (relative path: ./@angular)
Field ''browser'' doesn''t contain a valid alias configuration
after using description file: /Users/username/Projects/fireplace/node_modules/@angular/material/package.json (relative path: ./@angular)
resolve as module
[/Users/username/Projects/fireplace/node_modules/@angular/cdk/table]
[/Users/username/Projects/fireplace/node_modules/@angular/cdk/table.ts]
[/Users/username/Projects/fireplace/node_modules/@angular/cdk/table.js]
[/Users/username/Projects/fireplace/node_modules/@angular/cdk/table]
[/Users/username/Projects/fireplace/node_modules/@angular/cdk/table]
[/Users/username/Projects/fireplace/node_modules/@angular/cdk/table.ts]
[/Users/username/Projects/fireplace/node_modules/@angular/cdk/table.js]
[/Users/username/Projects/fireplace/node_modules/@angular/cdk/table]
[/Users/username/Projects/fireplace/src/@angular/cdk/table]
[/Users/username/Projects/fireplace/src/@angular/cdk/table.ts]
[/Users/username/Projects/fireplace/src/@angular/cdk/table.js]
[/Users/username/Projects/fireplace/src/@angular/cdk/table]
[/Users/username/Projects/fireplace/src/@angular/cdk/table]
[/Users/username/Projects/fireplace/src/@angular/cdk/table.ts]
[/Users/username/Projects/fireplace/src/@angular/cdk/table.js]
[/Users/username/Projects/fireplace/src/@angular/cdk/table]
@ ./node_modules/@angular/material/@angular/material.es5.js 34:0-218
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
ERROR in ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1}!./node_modules/postcss-loader?{"ident":"postcss"}!./node_modules/sass-loader/lib/loader.js?{"sourceMap":false,"precision":8,"includePaths":[]}!./src/theme.scss
Module build failed:
@import ''~@angular/material/core/theming/all-theme'';
^
File to import not found or unreadable: ~@angular/material/core/theming/all-theme.
Parent style sheet: stdin
in /Users/username/Projects/fireplace/src/theme.scss (line 1, column 1)
Error:
@import ''~@angular/material/core/theming/all-theme'';
^
File to import not found or unreadable: ~@angular/material/core/theming/all-theme.
Parent style sheet: stdin
in /Users/username/Projects/fireplace/src/theme.scss (line 1, column 1)
at options.error (/Users/username/Projects/fireplace/node_modules/node-sass/lib/index.js:291:26)
@ ./src/theme.scss 4:14-186
@ multi ./src/theme.scss ./src/styles.scss
webpack: Failed to compile.
"A requiere un par de B pero no se instaló ninguno". Considérelo como "A requiere uno de los pares de B pero ese par no estaba instalado y no le estamos diciendo cuál de los pares de B necesita".
La instalación automática de dependencias entre pares se eliminó explícitamente con npm 3.
Por lo tanto, no puede instalar dependencias de pares automáticamente con npm 3 y hacia arriba.
Solución actualizada:
Use el siguiente para cada dependencia de pares para instalar eso y eliminar el error
npm install --save-dev xxxxx
Solución obsoleta:
-
Puede usar npm-install-peers para buscar e instalar las dependencias de pares requeridas.
npm install -g npm-install-peers
npm-install-peers
-
Si
npm install
este error después de actualizar la versión de cualquier paquete, elimine el directorionode_modules
ynpm install
paquetes mediantenpm install
onpm cache clean
enpm install
.
¡Tuve un problema similar y lo resolví después de ejecutar estas instrucciones!
npm install npm -g
npm install --save-dev @angular/cli@latest
npm install
npm start
La respuesta aceptada de usar npm-install-peers no funcionó, ni eliminar node_modules y reconstruir. La respuesta para correr
npm install --save-dev @xxxxx/xxxxx@latest
para cada uno, con el xxxxx que se refiere al texto exacto en la advertencia de pares, funcionó. Solo tenía cuatro advertencias, si tuviera una docena o más como en la pregunta, podría ser una buena idea escribir los comandos.
Solo necesita depender de una versión principal de angular, así que actualice todos los módulos dependiendo de angular 2.x:
- actualizar @ angular / flex-layout a ^ 2.0.0-beta.9
- actualizar @ angular / material a ^ 2.0.0-beta.12
- actualizar angularfire2 a ^ 4.0.0-rc.2
- actualizar zone.js a ^ 0.8.18
- actualizar webpack a ^ 3.8.1
- add @ angular / cdk @ 2.0.0-beta.12 (requerido para @ angular / material)
- reemplace angular2-google-maps por @ agm / core @ 1.0.0-beta.1 (nuevo nombre)
Tuve el mismo problema al instalar el material angular CDK:
npm install --save @angular/material @angular/cdk @angular/animations
Agregar
-dev
como a continuación funcionó para mí:
npm install --save-dev @angular/material @angular/cdk @angular/animations
caso extremo total aquí: tuve este problema al instalar un archivo Arch AUR PKGBUILD manualmente. En mi caso, necesitaba eliminar las carpetas ''pkg'', ''src'' y ''node_modules'', luego se compiló sin este error npm.