mheuzey

Results 5 comments of mheuzey

I kept getting this as well. Adding the line ```"always-auth": true,``` to the registry settings, and then restarting VS Code seemed to fix it for me.

~~Regarding (2), it looks like an issue was opened on the npm github a few years ago, but doesn't look like it's been worked on yet.~~ ~~https://github.com/npm/npm/issues/20687~~ Edit: just realized...

I believe this is happening inside `CommandPreparer.prepare`: https://github.com/zowe/imperative/blob/881a4efae46fef82d445ef6107da386c075bd8a3/packages/cmd/src/CommandPreparer.ts#L41-L51 While `Infinity` is a valid number in JavaScript, `JSON.stringify` cannot store `Inifinity` as a value, so it gets [converted](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#Description) to `null`.

Whether the issue is permissions or something else, it would also be helpful if the error message has some details, so I have some idea of what went wrong.

If this change goes through, these properties could be used to create default values for some functions. For example, most people probably leave their profiles in the default directory, so...