shama / napa

:wine_glass: A helper for installing stuff without a package.json with npm.
MIT License
412 stars 34 forks source link

Repository field doesn't get set #30

Closed tomek-he-him closed 9 years ago

tomek-he-him commented 9 years ago

When you run npm install install over a project with napa-installed packages, npm throws the following:

npm WARN package.json jquery-easing@0.0.0 No repository field.

The said repo: gdsmith/jquery.easing.

The spec doesn't seem to say anything about the repository field being required. But it's not nice to see npm shouting at me.

tomek-he-him commented 9 years ago

Actually, as of npm v2.2 warnings are plenty:

$ npm install

> my-project@0.0.0 preinstall /home/tomekwi/my-project
> napa

info cache https://github.com/yahoo/pure/releases/download/v0.5.0/pure-0.5.0.tar.gz into pure
npm WARN package.json pure@0.0.0 No description
npm WARN package.json pure@0.0.0 No repository field.
npm WARN package.json pure@0.0.0 No README data

I'll try to hack it out this week.

tomek-he-him commented 9 years ago

BTW, @shama, I see that you do set the description field to an empty string. That doesn't help anymore.

I've found that setting each of the fields repository, description and readme to " " helps get rid of the warnings. Would you accept it if I code it this way?

shama commented 9 years ago

@tomekwi Yep! Sounds good, thanks!