Skip to content
Discussion options

You must be logged in to vote

To clarify, the vulnerabilities aren't what cause the Error. The most recent build has the npm install process use setHint to show npm's progress while something is installing. So that's probably where the confusion came from.

What fails is when await npm attempts to import btoa.

btoa 's package.json's "main" is set to index (not index.js). So the await npm attempts to import ~/.kenv/node_modules/btoa/index which isn't a file.

node must fallback to importing index.js if the "main" is malformed. So I'll adjust the npm helper to do the same.

Related: Interesting twitter thread on node and btoa

I'll get a out a build in a couple hours to fix this. For now you can use:

let {default:btoa}  = a…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jsjoeio
Comment options

Answer selected by jsjoeio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Errors
Labels
None yet
2 participants