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
2
votes
5 answers

While publishing npm, getting npm publish npm ERR! 403 Forbidden PUT https//registryname/ - forbidden

I am trying to publish the package using npm publish command. but I am getting this error every time. npm ERR! code E403 npm ERR! 403 Forbidden - PUT https://registryname - forbidden I have "publishConfig": { "registry":…
V K
  • 87
  • 4
  • 13
2
votes
0 answers

Create-react-app vs custom Webpack config for publishing react app to npm repository

Scenario 1 - Using create-react-app I'm able to successfully develop a SPA and deploy it on several platforms like - githubpages, netlify heroku etc. Here create-react-app does all the configuration work I believe and minimal effort from my side.…
beta programmers
  • 513
  • 2
  • 8
  • 23
2
votes
2 answers

Published a NPM package to Azure Artifacts but getting this error while installing

F:\angular library\sampleangular>npm install examplepackage@0.0.1 npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/examplepackage- Not found npm ERR! 404 npm ERR! 404 'examplepackage@0.0.1' is not in the npm registry. npm…
Vignesh Arvind
  • 531
  • 2
  • 7
  • 16
2
votes
2 answers

How to get latest version of my package from npmjs

For example below is package which is hosted in npmjs, package - https://www.npmjs.com/package/@syncfusion/ej2-base i want to get this package latest version through command with out installing it. is ther anyway available to achieve my…
Kumaresan Sd
  • 1,399
  • 4
  • 16
  • 34
2
votes
1 answer

Best practice for production/beta in Azure DevOps NPM Registry

Context I have an NPM package that I want to have deployed into a private Azure DevOps NPM Registry. We have two types of the package, namely production and a beta. I ran into an issue with Azure DevOps, that it currently doesn't support tagging…
SOK
  • 515
  • 6
  • 21
2
votes
2 answers

npm pack/publish won't pack .gitignore or .npmrc files

I have built a project generator for my company. It's a globally installed npm package, that when run, takes the entire contents of a /template directory inside the package and copies it to the user's chosen destination. Inside /template I have 2…
Titan
  • 5,567
  • 9
  • 55
  • 90
2
votes
1 answer

How to make an NPM package that uses global types but doesn't augment the project using it?

The Question: Any project that reuses a lot of types in many different files can make use of types defined in a script file. Those types are visible globally across the project and don't need to be imported, see the official handbook: In…
m93a
  • 8,866
  • 9
  • 40
  • 58
2
votes
1 answer

ran npm publish without error but cannot see updated package

I updated my version in package.json and ran "npm publish". I did not see any error and see the log "package-name prepublishOnly" in terminal. Now if I go to https://www.npmjs.com/package/, I could not see updated package. Then if I ran "npm…
bunny
  • 1,797
  • 8
  • 29
  • 58
2
votes
1 answer

Package an npm module so that it can work in the frontend (eg. with create-react-app) `You may need an appropriate loader to handle this file type`

I have written a node module and published it as a node package. It works when I use it in backend applications (pure nodejs, no babel or transpile). However, when I use this same npm module in the frontend (in my case a 'create-react-app')…
JasoonS
  • 1,432
  • 3
  • 13
  • 26
2
votes
1 answer

published npm package is not visible npm

I'm new to npm, recently I published an npm package 'mango-aliyan' and I can see it at https://www.npmjs.com/~shakkirptb, but https://www.npmjs.com/package/mango-aliyan is showing 404! what am I missing here? Thanks for your help
ShAkKiR
  • 863
  • 9
  • 20
2
votes
1 answer

Not able to get the published package published using ng-packagr

While following this tutorial.This is the error I'm getting.The only difference is that I'm declaring a directive insteaad of component although it's working fine in local developement but when installed through npm it gives the following…
Black Mamba
  • 13,632
  • 6
  • 82
  • 105
2
votes
0 answers

Is it possible to set default folder to be published using 'npm publish'

I'm currently developing an Angular library package using ng-packagr. Apparently the built result is generated under './dist' folder and it contains all the files (including package.json, js, and d.ts files) that I want to publish to the npm server…
2
votes
0 answers

publishing .tar.gz with npm publish

I am using npm publish to publish a package to artifactory. I am able to pulish the package to artifactory with .tgz extension using the 'npm publish' command but I was wondering if there was a way I can publish the package with .tar.gz extension? I…
2
votes
1 answer

How to publish web app to NPM

I've created a simple React web app and would like to publish it to NPM so that people find if easier to install (it's already published to Github). However npm installs it by putting the whole project folder inside the node_modules folder. This of…
knee-cola
  • 736
  • 8
  • 17
2
votes
1 answer

Issue with publishing to npm

So I am trying to build an Open Source project using react and pushing it to npm. The issue is, my components, while they work great on a test environment - mounted to other components but when I publish it to npm and download the package and try to…