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
0
votes
1 answer

Publishing custom angular7 library to nexus

I am trying to publish the custom angular7 library to nexus repo, but when I am running command npm publish it is pushing the complete project dist folder instead it should only push the .tgz file generated inside dist to nexus. I did the below…
Rohit Kotak
  • 173
  • 1
  • 17
0
votes
1 answer

Problem to use api methods from a npm package

I recently created an api called jkanime using Typescript. I have the problem after publishing it on the npm platform, it shows me an error when using the API functions. The error comes from the imports of some packages that I use to create the…
Chris Michael
  • 1,557
  • 3
  • 15
  • 23
0
votes
0 answers

Importing NPM Module

I have just forked a github project, made some changes and added it to my project. The problem is, I can't figure out how to import it into my project I tried this import statement: import Editor from 'editorjs-react' But it didn't work. Truth…
Moshe
  • 6,011
  • 16
  • 60
  • 112
0
votes
1 answer

Not able to install node-reggie in node v10.16.0

I have used node-reggie to publish private node modules to our private registry. Now we upgraded our node version from 0.12.17 to 10.16.0. After upgrade i am not able to install reggie in my local machine. I am getting the following error. Is it…
Jeff Johny
  • 418
  • 1
  • 5
  • 19
0
votes
1 answer

How to make our npm package(to be published) as small as possible

How to minimize the size of our npm package and Do we need to add webpack as dependency when publishing an npm package. I have referred below…
harshit
  • 196
  • 1
  • 8
0
votes
1 answer

How can I unpublish node module on npmjs?

I want to unpublish my project monetrum-node-client which I published before my personal account at npm and publish it from the company account. Is this possible? I'm waiting for your help. Error I am getting; PS C:\nodejs\prod\monetrum-node-client>…
Baltazarr
  • 35
  • 1
  • 10
0
votes
1 answer

npm publish unexpected token u in JSON at position 0

I got the below error on call npm publish. I was trying publish an existing package on private feed: npm ERR! Unexpected token u in JSON at position 0 My package.json: { "name": "XXXXXXXXXXXX", "version": "0.0.6", "description":…
Gilberto Alexandre
  • 2,227
  • 1
  • 18
  • 20
0
votes
1 answer

When, if ever, will NPM restore dependencies published after the dependent package?

Assume all references in package.json are ^1.0.0 and I only bump the patch version. I have A dependent on B dependent on C: A > B > C. I restore A and notice that the version of C I get is published after B. I expected the latest version of C that…
Christopher King
  • 1,034
  • 1
  • 8
  • 21
0
votes
2 answers

Unable to publish dependencies into private npm repository

I have created a private nexus repository to host my custom nodejs libraries. But when I publish my package, it doesn't publish any of its dependencies. Steps: npm set registry npm login npm publish package.json { "name":…
0
votes
1 answer

Use git repository as private NPM registry

Want to use git repository as a private npm registry to publish my own npm packages. I have tried with the publishConfig and npm config set registry <>. When I am setting the npm registry with npm config set registry <> and try to login with npm…
0
votes
1 answer

Typescript - Transform imports for npm distribution

I am working on an NPM package written in Typescript, and I am having trouble wrapping my head around module resolution when compiling the library to publish. Throughout the project, I have been using non-relative imports to avoid the annoyance of…
Wolfie
  • 1,369
  • 8
  • 16
0
votes
1 answer

Get latest Git tag for NPM project

Looks like when you run npm publish it creates a git tag for you. That's weird that it does that automatically. When I run git describe --tags, I see: v1.1.512218-311-g9f79efe when I run git tag, I…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
0
votes
0 answers

Npm: Getting cannot get / error after publishing my package

I am having a npm package which serves as a local host. What I want is after user use npm install -g to install it, they can use the command easydx to run the local host and web pages can be served as in a static server. During development, it…
Lance Shi
  • 1,127
  • 3
  • 13
  • 28
0
votes
2 answers

NPM Can't Publish E400 New package version must have dist with {shasum, tarball}

I have this issue that all of a sudden I can not publish to npm anymore. I get the following error when running npm publish NPM Can't Publish E400 New package version must have dist with {shasum, tarball} I don't know what I can do about it and I…
Lukas Oppermann
  • 2,918
  • 6
  • 47
  • 62
0
votes
1 answer

How to publish a npm package from a owned Github repository?

Im'trying to publish a npm package from a owned Github repository. I've tried with: npm publish git+https://Aminta@github.com/Aminta/fontfacegen.git But it gives the following error: Darwin 17.4.0 npm ERR! argv "/usr/local/bin/node"…
AmintaCode
  • 364
  • 5
  • 15