npm-publish Questions

2

Goal I have manually published an open source lib to registry.npmjs.org and I want future releases to be automatically published using GitHub Actions. I have no prior experience with GitHub actions...
Nunciature asked 8/1, 2022 at 10:22

23

Solved

I just created a new package. I'm now trying to publish it to NPM for the first time like this: ole@MKI:~/Sandbox/pli$ npm publish --access public npm ERR! publish Failed PUT 404 npm ERR! Linux ...
Wuhsien asked 24/8, 2016 at 5:30

3

I've created some functions in JavaScript. I've found out that I reuse them in many projects. So I decided to create a small JavaScript Library for my coding. A Library like react, react-dom, jquer...
Toplevel asked 2/5, 2021 at 8:30

4

Solved

So 2 days ago I published my first npm package, a simple library to trim and join audio files The weird thing is I already got 111 downloads somehow. I haven't shared this package with anyone. Neit...
Unlicensed asked 23/1, 2022 at 6:46

5

I am trying to create few react components with few custom changes as package and publish into npm so that other projects can use them by importing package. My package is "sample-testing" availabl...
Unbrace asked 13/5, 2020 at 10:35

3

Solved

I am trying to test one of the package locally. What I do is go the root directory of my package and run npm pack It creates .tgz file and I install this file via npm i <path to file>. Now I...
Karole asked 22/7, 2021 at 5:5

3

Solved

I've attempted to implement the official guide to publishing and installing a package with GitHub Actions: Authenticating to package registries with granular permissions Fails with: npm ERR! code E...

17

I'm trying to automate npm publish inside a Docker container, but I receive an error when the npm login command tries to read the username and email: npm login << EOF username password email ...
Respectability asked 4/5, 2014 at 20:2

4

Solved

npm is causing me grief and I have no idea why. Trying to publish a new version of my package. npm view {{package}} versions [ '0.3.0', '0.3.1', '0.4.0', '0.4.2', '0.5.0', '0.6.0', '0.6.1',...
Subsidence asked 19/4, 2019 at 23:54

8

I've updated my package using npm version minor to go from 0.4.0 to 0.5.0, and both package.json and package-lock.json reflect this. However when I run the npm publish command it says: You canno...
Lissalissak asked 11/12, 2018 at 20:0

2

I am trying to run npm publish on a package after I've upgraded to node v18 and npm v9. But I get the following error: This command requires you to be logged in to https://some-package.com:48082/ne...
Diversion asked 28/2, 2023 at 11:40

3

Solved

I have tried to make use of the new NPM registry that's now part of the free GitLab edition. I am attempting to create a NPM package and publish it on our company's GitLab instance. When attempting...
Homiletic asked 11/2, 2021 at 11:12

8

Solved

I am trying to create npm vue component library. I have been working through all the steps but stuck at npm publish. Please see the below error screenshot for which I am unable to find a solution...
Featly asked 4/5, 2020 at 11:56

3

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 '@[email prot...
Jugglery asked 11/11, 2021 at 7:11

2

I was making a simple npm package, I deleted the first version i.e, v0.1.0. So there is no v0.1.0 for my package. But I published later versions, with latest being v0.3.0. But when I execute npx &l...
Pepys asked 31/7, 2022 at 15:25

4

I am trying to publish a package to the npm registry. But when I hit the command npm publish I get this error. npm WARN prepublish-on-install As of npm@5, `prepublish` scripts are deprecated. npm W...
Pseudocarp asked 24/10, 2020 at 15:14

1

I have a monorepo using NX & Angular and I am publishing some libs to NPM and i have the following scenario apps only_App libs lib_A // v1.0.0 lib_B // v1.0.0 lib_C // v1.0.0 lib_A depends...
Conglobate asked 16/6, 2022 at 12:12

2

Solved

NPM gives the ability to create access tokens with the right to publish packages to the NPM registry, assuming that you've set the package settings to "Require two-factor authentication or aut...
Greenwood asked 22/1, 2021 at 18:58

1

Solved

I am maintaining my first npm package so this might be an error on my part. Once build my package and commit it to git the next step is: $ npm version patch $ npm publish The output (abridged) is ...
Iphigenia asked 3/4, 2022 at 22:27

1

Solved

My newest typescript project is split into different modules and submodules. My file structure: package.json (...) /src | /module1 | | index.ts | | (...) | | /subModule1 | | | index.ts | | | (...) ...
Continuity asked 29/3, 2022 at 9:38

0

NPM doesn't follow directory symbolic links, nor directory junctions. Is there some configuration or way to force NPM to include also files from such directories? Minimal reproducible example. Fold...
Originality asked 25/3, 2022 at 10:15

2

Solved

When we publish a package to npm, it will show us some data such as popularity, quality, and maintenance in the search page (The example image is blow). I just wonder how npm calculates the qualit...
Lavonnelaw asked 16/4, 2018 at 21:33

1

Solved

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...
Raila asked 20/1, 2022 at 15:54

2

Solved

I've recently created a new Organization and went for the paid plan to publish unlimited private packages. However, each time I try to publish my package to my Org, it keeps giving me the followin...
Octaviooctavius asked 19/3, 2019 at 12:56

3

Before publishing my script, I have a number of scripts under the package.json to compile coffeescript, typescript and developer only commands - which make no sense once it's published. I was wond...
Effectually asked 15/2, 2018 at 7:46

© 2022 - 2024 — McMap. All rights reserved.