-
Notifications
You must be signed in to change notification settings - Fork 13
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
module is packaged with .pem files #7
Comments
@zhaizhai ha, that is quite interesting! @dominictarr thoughts? Haha. "files": [
"browser.js",
...
] However, maybe renaming the files will be just as effective and maintains a status quo? |
Hmm, if you bundle this with browserify then you won't need to keep |
We can just put *. pem in a .npmignore On Sat, Jun 6, 2015, 5:32 AM Dominic Tarr [email protected] wrote:
|
first we should understand why this is causing @zhaizhai's problem |
@dominictarr Good point, you're right that I don't need to package |
👍 |
@zhaizhai how were you packaging |
I know this is a little late, but I was hitting this problem today. I am developing a chrome extension that depends on browserify. Chrome throws the following errors when trying to unpack the extension: This extension includes the key file '/app/node_modules/browserify/node_modules/crypto-browserify/node_modules/public-encrypt/test/test_key.pem'. You probably don't want to do that. I removed the files manually and all was well. However, the next time I run npm install I will hit the same issue. I was thinking maybe adding the test directory to .npmignore would do the trick. |
@RobbyChapman if you are using browserify, why is the |
@dcousens I'm not sure I understand the question. If you are building a chrome extension the entire root directory is the application. Moving node modules wouldn't solve that. |
@RobbyChapman the contents of node_modules especially node_modules/browserify is a development dependency that should not actually be packed into the chrome extension, though as you are the 2nd one to make this mistake it probably wouldn't hurt to put the .pem files into the npm ignore |
@dcousens I see what you are saying. I rearrange the app based on your suggestion and all is well. I do agree with the .pem fix though. Thanks for looking into it! |
@RobbyChapman we could move it, but this sounds like a great way to help people realise you shouldn't pack |
@dcousens I'm developing a Chrome extension. I know I shouldn't pack I'll send another PR that just npm-ignores the |
Not sure if this is the right place, but I am using browserify in a chrome extension that I think uses this module somewhere down the chain of dependencies. The presence of .pem files (even though they are just tests) is causing problems, because chrome does not want to pack an extension that has .pem files (in case you accidentally distribute your real keys).
This is largely chrome's fault for being so restrictive and providing no mechanism that I know of to override the .pem file detection, but it would be very helpful if you could somehow get rid of the .pem files or rename them to something else. Thanks!
The text was updated successfully, but these errors were encountered: