I've created a npm package following several different sets of instructions online. Here is what I have: https://github.com/joelarson4/CharFunk/blob/master/package.json
When I do an npm publish
, I get a single newline of output (no errors, no anything). But from what I can tell, my package is not on npmjs.org. https://www.npmjs.org/package/CharFunk is an error page.
How can I figure out what I'm missing?
Summary. DO NOT USE YOUR OS PACKAGE MANAGER TO INSTALL NODE. JS OR NPM - You will get very bad results as it seems no OS is keeping these packages (not even close to) current. If you find that npm is running slow and it isn't your computer or internet, it is most likely because of a severely outdated version.
With your NPM package local to your machine, you'll need a way to reference/install it in the test application. Inside of the original NPM package directory, run npm link from the command line. This command will allow us to simulate installing this NPM package without it actually being published.
Npm has an audit functionality that can be used to identify which packages are responsible for the vulnerabilities. The easy fix is to use the npm audit --fix which will look for updates that can be updated to fix those automatically.
It stands for “silly” — the default log level that outputs a “silly” amount of information.
You solved your problem, but for others; You might see more information with:
npm publish --verbose
You might have loglevel set to silent. Try doing
npm config set loglevel verbose --global
and then rerunning your npm commands to see if that gives more useful detail.
If not, try editing ~/.npmrc
and setting
loglevel verbose
The extra information provided should help clarify the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With