CalenStyle
CalenStyle copied to clipboard
"Refusing to install calenstyle as a dependency of itself" on npm install
Hi. I do "npm install calenstyle" and get error "Refusing to install calenstyle as a dependency of itself"
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.
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.
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.