node-base64 icon indicating copy to clipboard operation
node-base64 copied to clipboard

problem with the package (npm)

Open danielzzz opened this issue 15 years ago • 1 comments

node 0.1.103 (nvm) + npm

it seems npm generates an incorrect main.js file for node-base64 (this maybe because this module is compiled), the problem is in the line 5 (/lib/node/.npm/node-base64/0.0.1/main.js)

module.exports = require("./package/build/default/")

it should be: module.exports = require("./package/build/default/base64")

I reported something similar to isaacs once and he thougth it's a problem in this file:

Bug in base64 package.json. It should read "main":"./build/default/base64"

thanks! danielz

danielzzz avatar Aug 05 '10 11:08 danielzzz

I have encountered the same problem. Editing my "index.js" file as danielzzz suggested fixed the issue.

rsbrown avatar Oct 17 '10 14:10 rsbrown