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
0 answers

How to fix "Support for the experimental syntax 'jsx' isn't currently enabled" error for my npm package

I am currently working on publishing a npm package for ReactJs. And everything works fine on my local machine but when I try to use the published the package, I keep getting this error Add @babel/preset-react (https://git.io/JfeDR) to the presets'…
Agent47
  • 91
  • 7
1
vote
1 answer

Unable to authenticate github and npm

$ npm login --scope=@username --registry=https://npm.pkg.github.com $ Username: username $ Password: ******** $ Email: (this IS public) example@gmail.com $ npm ERR! code E401 $ npm ERR! 401 Unauthorized - PUT $…
Felix Orinda
  • 593
  • 4
  • 20
1
vote
0 answers

Module not found: Error: Can't resolve 'spdx-exceptions'

I get this error while executing a script for building kibana version 7.9.1. That build usually runs smoothly. The new thing in my case is that I replaced dependencies like @elastic/eui with a customized @elastic/eui npm package published on my…
Nicolas Peron
  • 124
  • 1
  • 8
1
vote
1 answer

Gitlab - npm registry - npm publish - 422 Unprocessable Entity

I am trying to publish a really simple example to our gitlab npm registry but getting an error I have updated the names/projectId/token etc but this is the error. npm ERR! 422 Unprocessable Entity - PUT…
user3284707
  • 3,033
  • 3
  • 35
  • 69
1
vote
0 answers

How and why to use pre-versions

I'm working on an NPM package, and I'm using NP to publish. When choosing what version to bump to, four of the options are pre[something]. prepatch 1.0.1 -> 1.0.2-0 preminor 1.0.1 -> 1.1.0-0 premajor 1.0.1 -> 2.0.0-0 prerelease 1.0.1 ->…
Ben Keys
  • 71
  • 1
  • 6
1
vote
0 answers

Publish multiple packages from subfolders

So let's say I have a project called elements. In this elements project I managed to do npm publish by adding .npmrc file and proper package.json to the root of the project. What would be the best way to approach publishing if I was to introduce new…
Skafec
  • 49
  • 6
1
vote
1 answer

verdaccio publish new package

OS OpenSuse 15.2 I have trouble with publihing new packages to local npm proxy Verdaccio version 5.1.0 I have installed verdaccio from npm Added user verdaccio : id verdaccio uid=1001(verdaccio) gid=100(users) группы=100(users) Added to config…
sergey_s
  • 119
  • 2
  • 6
1
vote
1 answer

Starting from existing project with semantic-release to publish package NOT starting at 1.0.0

I have a private npm package that is currently published to npm. The maintainer before me did not consider automated versioning, and the version is 1.0.58. I have installed semantic-release and a small GitHub app that can be found here:…
aLx450
  • 284
  • 2
  • 14
1
vote
1 answer

Which part have to be published to NPM registry

I am trying to create reusable react components that I would like to publish to NPM registry. The project folder contains the following files and folders: The dist folder contains the output files and folders from src. As you can recognize, I am…
softshipper
  • 32,463
  • 51
  • 192
  • 400
1
vote
1 answer

Override registry mentioned in publishConfig of package.json through command line

I have lot of packages with different publishConfig, I am trying to move them to a new artifactory and I can't change them all. Is there a way to override the publishConfig through command line?
Msvstl
  • 1,116
  • 5
  • 21
1
vote
1 answer

Customisable component library in ReactJS

I'm trying to create a customisable ReactJS component library. I've considered create-react-library for the purpose. Component development is almost finished. I've placed all my components in separate directories, and I'm exporting all of them in…
1
vote
0 answers

Typescript npm publish with subpath exports

I am trying to create a npm package with a bit uncommon use case. I have two typescript files error.ts and filehandle.ts. These modules have their classes. After package is published, I want to import specific modules separately. Currently, I have…
ravi
  • 133
  • 12
1
vote
0 answers

I'm trying to share my module but it gives an error

I'm trying to share my module but it gives an error npm ERR! code E400 npm ERR! 400 Bad Request - PUT https://registry.npmjs.org/saverdb - deprecations must be strings npm ERR! A complete log of this run can be found in: npm ERR! …
RengaN
  • 19
  • 2
1
vote
1 answer

unpacked size of my node module suddenly increased much bigger with no much change

I created this node package When it was the version of 1.7.3, Its unpacked size was only 618KB But after updating to the version of 2.0.0 with just a little file change, its size became 4.35 MB The super weird thing is the fact that I rather reduced…
Shawn
  • 367
  • 4
  • 13
1
vote
2 answers

Syntax Error: Support for the experimental syntax 'jsx' isn't currently enabled

I am unable to use my npm component package that i have created. I have published the package successfully but when i am using it in a fresh code it is showing this error "SyntaxError:…
Trinendra
  • 11
  • 2