When i run npm install -g grunt-cli i get the following error
npm ERR! peerinvalid The package generator-angular does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer generator-angularfire#0.0.6 wants generator-angular#~0.7.1
npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "grunt-cli"
npm ERR! cwd /Users/muhammadatif/Documents/tutorials/angular-101
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code EPEERINVALID
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users//Documents/tutorials/angular-101/npm-debug.log
npm ERR! not ok code 0
Seems this is a problem with generator-angularfire not been tested against the newer versions of generator-angular. You can read more about Peer Dependencies in NPM in this official blog post.
What helped for me:
npm uninstall -g generator-angular
npm uninstall -g generator-karma
Then running again npm install -g generator-angularfire (or in your case: npm install -g grunt-cli) should solve the problem, because it will install older, compatible versions of the above 2 generators.
Related
npm ERR! node_modules/react
npm ERR! react#"^18.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^16.8.0 || ^17.0.0" from #material-ui/core#4.12.4
npm ERR! node_modules/#material-ui/core
npm ERR! #material-ui/core#"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\ayush tawar\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ayush tawar\AppData\Local\npm-cache_logs\2022-06-10T07_31_54_848Z-debug-0.log
PS C:\Users\ayush tawar\OneDrive\Desktop\twitter clone>
Please try to do like this
npm cache clean
and then
npm install -g node-gyp
npm install --g --production windows-build-tools
Error installing bcrypt with npm
You can also add --verbose flag at the end of npm install which will show more
information about this issue.
if second command will not work, then you should install python to your pc and install this one.
npm install --g windows-build-tools
I believe if you will use ubuntu or mac os, it will be resolved maybe.
Or it could be node version issue, please upgrade node version.
The package is not up to date for react 18.
Just install it with --legacy-peer-deps, this will override the error checking.
npm install #material-ui/core --legacy-peer-deps
I just can't understand how to fix these peer dependencies.
I tried to install angular-cli with NPM globally but always results in:
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "-f" "angular-cli"
npm ERR! node v4.6.0
npm ERR! npm v2.15.9
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package #angular/compiler#2.1.0 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer #angular/compiler-cli#0.6.4 wants #angular/compiler#2.0.2
npm ERR! peerinvalid Peer #angular/platform-server#2.1.0 wants #angular/compiler#2.1.0
I was thinking NPM was taking care of such version differences.. what's going on?
I tried what I found online: clearing cache, installing with --force, but nothing changes this. I feel like I'm missing something basic here.
i got the same error when i was installing the angular-cli with npm.
but for me version was updated.
1)node v6.6.0
2)npm v3.10.3.
Then after i followed the following steps and the error was solved for me.
Try this,it may help.
1.npm uninstall -g angular-cli
2.npm cache clean
3.npm install -g node-gyp
4.npm install -g node-pre-gyp
5.npm install -g angular-cli
I'm trying to fix the npm start trouble on angular's quick start so I tried to install these dependencies. Unfortunately I'm encountering these error messages:
$ sudo npm install -g concurrently lite-server typescript
npm WARN deprecated tough-cookie#2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "concurrently" "lite-server" "typescript"
npm ERR! node v6.6.0
npm ERR! npm v3.10.8
npm ERR! uid must be an unsigned int
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "concurrently" "lite-server" "typescript"
npm ERR! node v6.6.0
npm ERR! npm v3.10.8
[14 - 16 of this repeatedly appears]
npm ERR! uid must be an unsigned int
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/username/npm-debug.log
I don't know what this means since I'm just a beginner.
You have to reinstall node.js package
node.js
It solves the issue for me
There are couple of ways to solve this issue. It has to do with permissions.
Listed below is summary of both solutions:
Solution A:
(1) Create npm-global directory under /Users// as /Users//npm-global
(2) npm config set prefix /Users//npm-global
(3) Add export PATH=/Users//npm-global/bin:$PATH to ~/.profile
(4) source ~/.profile
(5) If you don't want to do steps (3) & (4) add the export comment to ~/.bash_profile
or
Solution B:
(1) sudo chown -R $USER /usr/local/
Follow the link https://docs.npmjs.com/getting-started/fixing-npm-permissions for more details
I have a problem with my node and will not let me install .
armikhael#armikhael-MB40II:~/github/base-angular$ sudo npm install -g yo
npm WARN deprecated npmconf#2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
npm ERR! Linux 3.2.0-79-generic-pae
npm ERR! argv "/usr/bin/nodejs" "/usr/local/bin/npm" "install" "-g" "yo"
npm ERR! node v5.8.0`
npm ERR! npm v3.7.3
npm ERR! code EJSONPARSE
I'm trying to install yeoman on my mac to develop an angular app.
This is my situation:
node --version && npm --version
v0.10.33
1.4.28
and this is the result of:
sh-3.2# npm install --global yo bower grunt-cli
/var/root/.npm-packages/bin/grunt -> /var/root/.npm-packages/lib/node_modules/grunt-cli/bin/grunt
/var/root/.npm-packages/bin/bower -> /var/root/.npm-packages/lib/node_modules/bower/bin/bower
/var/root/.npm-packages/bin/yo -> /var/root/.npm-packages/lib/node_modules/yo/cli.js
yo#1.3.3 postinstall /var/root/.npm-packages/lib/node_modules/yo
yodoctor
env: node: No such file or directory
npm ERR! yo#1.3.3 postinstall: yodoctor npm ERR! Exit status 127 npm
ERR! npm ERR! Failed at the yo#1.3.3 postinstall script. npm ERR!
This is most likely a problem with the yo package, npm ERR! not with
npm itself. npm ERR! Tell the author that this fails on your system:
npm ERR! yodoctor npm ERR! You can get their info via: npm ERR!
npm owner ls yo npm ERR! There is likely additional logging output
above. npm ERR! System Darwin 14.0.0 npm ERR! command "node"
"/usr/local/bin/npm" "install" "--global" "yo" "bower" "grunt-cli" npm
ERR! cwd /Users/francobasilico npm ERR! node -v v0.10.33 npm ERR! npm
-v 1.4.28 npm ERR! code ELIFECYCLE npm ERR! not ok code 0
I've already tried to find the cli.js file but I find lot of them.
Can anyone help me?
Thanks
I had the same error and my problem was that I install yo with sudo.
Follow this guide and install yo without sudo privilege. That should fix your problem.
I guess you have problem with your node version. You should update to 6 or higher.
Yoeman Install prerequisites
Before installing the Fountain Webapp Generator, you will need the following:
Node.js 6 or higher
npm 3 or higher (which comes bundled with Node)
Git
Yoeman Setup