essential-angular-book-app
essential-angular-book-app copied to clipboard
npm install fail
npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer @ngtools/[email protected] wants [email protected] npm ERR! peerinvalid Peer [email protected] wants webpack@^2.1.0-beta.19 npm ERR! peerinvalid Peer [email protected] wants webpack@1 || ^2 || ^2.1.0-beta || ^2.2.0-rc npm ERR! peerinvalid Peer [email protected] wants webpack@^1.1.0 || ^2 || ^2.1.0-beta || ^2.2.0-rc npm ERR! peerinvalid Peer [email protected] wants webpack@^2 || ^2.2.0-rc.0 || ^2.1.0-beta || ^1.12.6 npm ERR! peerinvalid Peer [email protected] wants webpack@^2.1.0-beta
I got the same issue when trying to install...
$ git clone https://github.com/vsavkin/router_mailapp.git Cloning into 'router_mailapp'... remote: Counting objects: 487, done. remote: Total 487 (delta 0), reused 0 (delta 0), pack-reused 487 Receiving objects: 100% (487/487), 59.77 KiB | 0 bytes/s, done. Resolving deltas: 100% (277/277), done.
$ cd router_mailapp/
$ npm install npm WARN deprecated [email protected]: angular-cli has been renamed to @angular/cli. Please update your dependencies. npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN prefer global [email protected] should be installed with -g
[email protected] install /home/gmaimunah/Documents/Angular/Angular Router/router_mailapp/node_modules/node-sass node scripts/install.js
Cached binary found at /home/gmaimunah/.npm/node-sass/3.13.1/linux-x64-48_binding.node
[email protected] install /home/gmaimunah/Documents/Angular/Angular Router/router_mailapp/node_modules/fsevents node install
[email protected] postinstall /home/gmaimunah/Documents/Angular/Angular Router/router_mailapp/node_modules/node-sass node scripts/build.js
Binary found at /home/gmaimunah/Documents/Angular/Angular Router/router_mailapp/node_modules/node-sass/vendor/linux-x64-48/binding.node Testing binary Binary is fine npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed. npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed. npm WARN @ngtools/[email protected] requires a peer of webpack@^2.2.0 but none was installed. npm WARN [email protected] requires a peer of webpack@^2.2.0 but none was installed. npm WARN [email protected] requires a peer of tslint@>=4.0.0 but none was installed.
added 1164 packages in 181.624s
$ ng serve Unable to find "@angular/cli" in devDependencies.
The package "angular-cli" has been deprecated and renamed to "@angular/cli".
Please take the following steps to avoid issues: "npm uninstall --save-dev angular-cli" "npm install --save-dev @angular/cli@latest"
The "@angular/compiler-cli" package was not properly installed.
Error: The "@angular/compiler-cli" package was not properly installed.
at Object.
the same error, after doing recomended by npm steps, this issue converts into
$ ng serve
Cannot find module 'webpack/lib/node/NodeTemplatePlugin'
Error: Cannot find module 'webpack/lib/node/NodeTemplatePlugin'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.