Questions tagged [npm-publish]

npm publish is command on npm CLI, which publishes the specified package to the npmjs repository and then can be available to install through npm install command.

is a package manager for .

npm publish <packagename> is a command on npm CLI, which publishes the specified package to the npmjs repository. Published packages can then be installed via the command, i.e. npm install <packagename>

Reference:

396 questions
1
vote
1 answer

codesandbox - Cannot find module PACKAGE or its corresponding type declarations

I built and released a npm package called schemez. On my local system via vscode, it works great with no errors and plenty of Typescript support. On codesandbox, its erroring out with Cannot find module 'schemez' or its corresponding type…
SILENT
  • 3,916
  • 3
  • 38
  • 57
1
vote
0 answers

Kotlin/JS package is empty

In the following project: https://github.com/MarcinMoskala/AnkiMarkdown When I push a package to NPM, it seems empty. No binary code. I do export a single…
MarcinM
  • 428
  • 7
  • 15
1
vote
1 answer

npm publish for a package to AWS CodeArtifact repo fails with error "The provided package is configured to block new version publishes."

I've created an AWS CodeArtifact repository with an upstream connection to npmjs.com. After installing the latest publicly available version of the lodash package (4.17.21), I tried to publish a self-patched version to the repository (4.17.50). When…
BPotocki
  • 86
  • 5
1
vote
1 answer

Issue running npm publish --access public (E403)

I'm trying to publish a scoped package to npm, but I keep getting this error on the CLI: npm ERR! code E403 npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/@username%2fdynamic-ui-elements - Forbidden npm ERR! 403 In most cases, you or…
1
vote
1 answer

Why is npm publish telling me the package doesn't exist?

I'm trying to upload an npm package to a GitLab registry for the first time. I set the scope and the npm config entries according to the documentation, but when I execute npm publish, I get the following error: npm notice Publishing to…
TigersEye120
  • 664
  • 1
  • 9
  • 28
1
vote
1 answer

npm package not working - Snackbar is not a function

I have made a simple npm package snackbar-notification-js which is a function which shows snackbar( in react app). index.js of my package is as follows function SnackBar(text, duration) { var div = document.getElementById('snackbar-js') if…
Shlok Jain
  • 254
  • 1
  • 7
1
vote
2 answers

bundling and publishing an NPM library. Is it common to resolve all dependencies and include them into the bundle?

I've been tasked with the development of a NPM package with a custom component (in this case a react component) that makes uses of other dependencies such as plate, slate, etc. I'm in the process of preparing the output dist but it's not clear to me…
aarcoraci
  • 201
  • 3
  • 9
1
vote
1 answer

Does npm install have an equivalent to pip install --no-deps?

I'm more familiar with the Python ecosystem at this point and have a question about how I can do something with npm that I'm used to doing with pip. Let's say I have a wheel for a particular Python package, as well as a wheel file for each of the…
Caleb Koch
  • 656
  • 1
  • 9
  • 15
1
vote
1 answer

Github - getting not found error when trying to publish package to npm

I'm trying to publish a new package to npm, public. I have the following workflow: # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created # For more information see:…
David Faizulaev
  • 4,651
  • 21
  • 74
  • 124
1
vote
0 answers

Do I really need to put anything in "dependencies"?

I'm developing a browser-side package, with several runtime dependencies and developing tools. As suggested, I install them using NPM as dependencies and devDependencies respectively. Eventually, before I publish it, I always compile every source…
1
vote
0 answers

Publish to npm not working even though all credentials are met

It's my first time trying to publish a package to npm. I have verified my email after creating an npm account. And I also have a .npmrc file with: //registry.npmjs.org/:_authToken= But for some reason I'm still getting this 403 Forbidden.
webber
  • 595
  • 3
  • 10
  • 20
1
vote
3 answers

404 error while publishing npm package - `npm ERR! 404 Not Found - PUT https://registry.npmjs.org/`

On npm publish following error is thrown. Had worked before. npm ERR! code E404 npm ERR! 404 Not Found - PUT https://registry.npmjs.org/@XYZ - Not found npm ERR! 404 npm ERR! 404 '@XYZ@5.0.0' is not in the npm registry. npm ERR! 404 You should bug…
MemZ
  • 306
  • 4
  • 10
1
vote
1 answer

NPM package doesn't apear in search in npmjs after upload

Several days ago I published a package to npmjs, https://www.npmjs.com/package/pluralize-ru-ts the package is public, i'm pretty sure that the package.json is correct, when i try to npm i pluralize-ru-ts package installs fine, i get no errors. But…
Anatoly
  • 31
  • 5
1
vote
0 answers

Cloned repo / npm package still has old repo URL

I have been working with an old repo that has several folders - each of which is a separate npm package. The repo is no longer supported, but I want to use the contents and make additions, corrections, etc. The solution was to make a duplicate repo…
Joshua Foxworth
  • 1,236
  • 1
  • 22
  • 50
1
vote
0 answers

how to wrap ui lib in own npm package?

I'm trying to customize element-ui and wrap it in my npm package. I want to refer to component or style like custom-lib/button or custom-lib/style/button.scss. When I add "files": ["src/assets/*.scss"] to the package.json and publish after that my…
the_zhorov
  • 51
  • 1
  • 6