Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Refusing to install calenstyle as a dependency of itself" on npm install #15

Open
WakeRealityDev opened this issue Jan 6, 2018 · 3 comments

Comments

@WakeRealityDev
Copy link

Hi. I do "npm install calenstyle" and get error "Refusing to install calenstyle as a dependency of itself"

@nehakadam
Copy link
Owner

This error occurs when your package name in package.json file is same as package you are are installing.

Go to package.json of your package and check name property

{
name:"<PackageName>",
...
}

You can read a detail post about this error here.

@WakeRealityDev
Copy link
Author

WakeRealityDev commented Jan 6, 2018

Ok, the fix is to not put the name of the project on "npm install" as the README instructions say. Here is what I'm doing:

mkdir caltry0
cd caltry0
git clone https://github.com/nehakadam/CalenStyle.git
cd CalenStyle/
npm install
bower install calenstyle

But I get this error now:

.... long output ...
bower grunt-contrib-cssmin#^0.5.0      ENORESTARGET No tag found that was able to satisfy ^0.5.0

Additional error details:
Available versions in https://github.com/gruntjs/grunt-contrib-cssmin.git: 2.2.1, 2.2.0, 2.1.0, 2.0.0, 1.0.2, 1.0.1, 1.0.0, 0.14.0, 0.13.0, 0.12.3, 0.12.3, 0.12.2, 0.12.1, 0.12.0, 0.11.0, 0.10.0, 0.9.0, 0.8.0, 0.7.0, 0.4.1

I'm on Ubuntu 16.04 - My npm version is 5.6.0 and bower version 1.8.2 - Thank you.

@WakeRealityDev
Copy link
Author

WakeRealityDev commented Jan 6, 2018

ok, some progress. I had to edit two files:

https://github.com/nehakadam/CalenStyle/blob/master/bower.json#L50
https://github.com/nehakadam/CalenStyle/blob/master/package.json#L51

to remove grunt-contrib-cssmin version 0.5 and it now picks up version 2.2.1 of grunt-contrib-cssmin

However, I can't figure out how to get composer to start it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants