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

How to apply folder hierarchy with npm publish --registry?

I am not sure where to change in command line for npm publish or package.json file for npm. I am trying to structure the Nexus repository using the version. I have written a gitlab ci/cd pipeline. The result that I want in Nexus dashboard is -…
Smile Kisan
  • 191
  • 4
  • 19
2
votes
0 answers

Unable to install puppeteer

I have written the command npm i --location=global puppeteer to install puppeteer. writing npm install -g puppeteer also produce the same error: C:\windows\system32>npm install -g puppeteer npm ERR! code 1 npm ERR! path C:\Users\NITU…
2
votes
1 answer

Cannot install package in npm: auth is required

I cloned a fullstack MERN (Typescript) project from GitHub and when I was checking out the code on VS code I noticed there were errors everywhere for packages as if they weren't installed and when i want to install them I just can't and would get…
william
  • 57
  • 13
2
votes
0 answers

react component library image is not showing when publish package

I use create-react-library cli and create component. my component import image as follow : import avatarImage from "../assets/avatar.png"; and when publish it to github npm pkg , and install it in project , the…
Morteza Darzi
  • 33
  • 1
  • 5
2
votes
2 answers

Building a Typescript Library with Default AND Named Exports?

I like how React can be imported as a default object like import React from 'react' and imported in a destructured way, like import { useEffect } from 'react' or even import * as Whatever from 'react' if you're feeling cheeky. I'm trying to build my…
Paul Fidika
  • 103
  • 2
  • 7
2
votes
1 answer

How to publish a library inside library to NPM within one workspace (singlerepo) nx nrwl

I have a workspace that includes one app in the apps/sandbox folder and two libraries in libs folder. I have these two libs: @workspace/library library and @angular/nrwl to NPM libs/ui libs/cdk-ui I need to publish ui library to NPM but it's uses…
hackp0int
  • 4,052
  • 8
  • 59
  • 95
2
votes
1 answer

Why can't I publish this specific package to a private NPM registry hosted by Verdaccio?

I'm using Verdaccio to host a private NPM registry on a machine that doesn't have access to the internet. So far, I've successfully published thousands of packages to the registry. However, when trying to publish…
Caleb Koch
  • 656
  • 1
  • 9
  • 15
2
votes
3 answers

EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'

I am trying to publish an npm package but I keep getting this error. Any idea how I can fix it. please help me. thanks in advance. error EBUSY all lstat C:\hiberfil.sys -4082 EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys'
2
votes
2 answers

How to bundle tailwind css inside a Vue Component Package

In one of my projects, I build a nice vue3 component that could be useful to several other projects. So I decided to publish it as an NPM package and share it with everyone. I wrote the isolate component, build it and publish BUT I use Tailwind css…
2
votes
0 answers

How to solve issues occurring in iOS while creating NPM package for React Native?

I have followed this article from here to create react native library. I have published the library and used it in my local project. It works fine in android but when I try to run it on iOS it throws errors like: TypeError: null is not an object…
2
votes
0 answers

Updating own released package files on NPM without increasing the version number

I maintain a NPM package and so far I have always created a new version of the package every time I made a change to the package files. For this i followed the following guide from the NPM…
KreutzerCode
  • 334
  • 1
  • 2
  • 12
2
votes
0 answers

(plugin babel) Error: Plugin/Preset files are not allowed to export objects, only functions

I'm trying to create a npm package and below is my package.json { "name": "********", "version": "1.0.0", "description": "*****************", "keywords": [ "exit", "intent" ], "main": "dist/*********.js", "module":…
Amaarockz
  • 4,348
  • 2
  • 9
  • 27
2
votes
1 answer

New version of package is published but does not show up on npm and is not installable yet by user

I have issue with publishing my new version to npm. I saw this question: I published one package on npm, but it's not showing in the search list when i am going to search which is where I got how to check as I did below, but mine is looking a bit…
Mary Obiagba
  • 185
  • 1
  • 12
2
votes
0 answers

Issues with publishing npm package on private gitlab registry

I have a (test) npm package named @myScope/test which I want to publish into a private gitlab registry within a gitlab project whose address is https://gitlab./myId/test-npm-registry/ with ID 9630 First, I'm a bit confused with npm login…
sr-01-01
  • 87
  • 1
  • 3
2
votes
1 answer

Github Action - Error: Process completed with exit code

I am trying to setup Github actions to npm publish my package. But I got this error When I move on execute My workflows/publish.yml file looks like the following: name: publish on: push: branches: [ main ] jobs: release: name:…