Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Prevent installation of modules if license does not permit #5339

Closed
fips999 opened this issue May 25, 2014 · 5 comments
Closed

Prevent installation of modules if license does not permit #5339

fips999 opened this issue May 25, 2014 · 5 comments

Comments

@fips999
Copy link

fips999 commented May 25, 2014

There are quite a few modules falling under licenses such as "Microsoft Office Extensible File License". This license has a platform clause rendering it unusable in Linux and OSX:

(F) Platform Limitation- The licenses granted in sections 2(A) & 2(B) extend only to the software or derivative works that (1) are run on a Microsoft Windows operating system product, and (2) are not Excluded Products.

I wonder if it makes sense for NPM to enforce the license by preventing installation on non-Windows platforms

@sindresorhus
Copy link

That's IMHO outside the scope of npm, but the module author should set "os" in package.json to "win32" https://www.npmjs.org/doc/files/package.json.html#os

@fips999
Copy link
Author

fips999 commented Jun 21, 2014

@sindresorhus haven't tried personally, but what happens if the os is set to win32 and a person tries to install the module in linux or osx?

@sindresorhus
Copy link

@fips999 it fails the install. this one only works on OS X, try it on something else: https://github.com/sindresorhus/finder-path/blob/675677ab938b6ac0150c106b9df3c803fe15eb1c/package.json#L16

@rlidwka
Copy link
Contributor

rlidwka commented Jun 22, 2014

Yep, it's outside of npm scope imho.

But it would make sense to ensure that non-free software doesn't exist in npm registry. I wouldn't want to install something only to find out that I agreed to a commercial license implicitly.

@fips999
Copy link
Author

fips999 commented Jun 23, 2014

@rlidwka that's my fear as well

@fips999 fips999 closed this as completed Jun 23, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants