You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to publish the lib folder as an npm directory.
what I did was to cd into the /packages/lib folder and then run npm publish from there. I got this error: npm ERR! Cannot set properties of null (setting 'peer')
What could be the issue? I have reinstalled node_modules but that didn't help
The text was updated successfully, but these errors were encountered:
I haven't come across that error before, don't really have an idea what could be causing it. My first instinct would be to check that your versions of node, npm etc are uptodate. also consider that this repo runs on pnpm, so if you also use pnpm to manage your repo, try using pnpm publish (which should also work from the project root).
If this is a public package and you don't pay an npm subscription, the first time you publish a package you need to run npm publish --access public
if you are publishing a scoped package @scope/package you need to be an admin of that "scope". Your user account or a company account you have made will give you a scope name. Check that you own it and have access.
Hi @LinusBorg, thanks for the library.
I'm trying to publish the
lib
folder as an npm directory.what I did was to cd into the
/packages/lib
folder and then runnpm publish
from there. I got this error:npm ERR! Cannot set properties of null (setting 'peer')
What could be the issue? I have reinstalled node_modules but that didn't help
The text was updated successfully, but these errors were encountered: