essential-angular-book-app icon indicating copy to clipboard operation
essential-angular-book-app copied to clipboard

npm install fail

Open allenm opened this issue 8 years ago • 2 comments

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

allenm avatar Jan 16 '17 12:01 allenm

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. (/usr/lib/node_modules/@angular/cli/node_modules/@ngtools/webpack/src/index.js:14:11) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/usr/lib/node_modules/@angular/cli/tasks/eject.js:10:19) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19)

rustan-id avatar Jun 15 '17 01:06 rustan-id

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. (C:\work\temp\essential-angular-book-app\node_modules\html-webpack-plugin\lib\compiler.js:11:26) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (C:\work\temp\essential-angular-book-app\node_modules\html-webpack-plugin\index.js:7:21) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32)

DSinkov avatar Oct 31 '17 14:10 DSinkov