I just created a new package: https://github.com/supericium/pli
I\'m now trying to publish it to NPM for the first time like this:
ole@MKI:~/Sand
Once you successfully publish the package you may experience when you try to npm install:
npm ERR! code E404
npm ERR! 404 Not Found: @xxx/yyy@latest
or something similar, regardless if you npm publish was successful. In this case make sure your {main: 'file.js'} in packages.json is there.
Ideally, you can call it index.js if you wish to leech directly from the package so you don't get things like import * from '@xxx/yyy/file'.