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

What should the entry point be for a pure CSS npm project?

I have a CSS file that I want to upload to npm. My project's folder structure is as follows: my-project (folder) | +---- css (folder) | +---- my-project.css | +---- my-project.min.css When I try to upload my project to NPM,…
darkhorse
  • 8,192
  • 21
  • 72
  • 148
0
votes
2 answers

How I can solve npm installtion problem to laravel project

when i run npm i it returns the error. C:\xampp\htdocs\personal\freshShop>npm i ** npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 npm WARN deprecated chokidar@2.1.8:…
0
votes
0 answers

Can I create a npm package both deployed and published with different dependencies

I have created a React application (using create-react-app). This React application contains some code that I want to publish on NPM. I managed to do it (using Rollup). The problem is with dependencies: I need it for the react application, but I…
Romain F.
  • 766
  • 10
  • 15
0
votes
0 answers

Semver: Is it acceptable for "latest pre-release" package to be older than "latest stable?"

According to semver.org, there are conventions for pre-release and stable version numbers, but I haven't found conventions for NPM distribution tags. Since we can only apply a single NPM distribution tag with npm publish or with package.json's…
bbrennan
  • 41
  • 3
0
votes
0 answers

React Routing (Redirect to Url) stopped working for already working code after performing npm link from a create-react-app

I am trying to publish a Npm Package called "React-Animated-FullScreen-SideNavBar" which has react-routing working for it out of the box. If you checkout the demo everything is setup and working beautifully so far. Demo link:-…
0
votes
0 answers

How to update dependency of a published package

I want to install package A. Package A uses package B version:1 as its dependency. However, package B version:1 deprecated by the author. On installation of package A npm warns that package B should be updated. Can I update the package B to the…
Mandeep Singh
  • 33
  • 1
  • 6
0
votes
1 answer

How to package a react component on npm without store

I've been reading articles about how to publish react components to NPM, but I'm confused about the details when the component has a store implemented using a library like mobx. Take a simple example like the component you can see in its entirety…
Scott
  • 458
  • 4
  • 10
0
votes
1 answer

Bitbucket pipeline triggers twice on tag with commit

I have a CI pipeline in Bitbucket which is used to build and test a shared Node.js library. If we create tag (eg. npm version patch -m "Upgrade to 0.1.2 for bug fix") the new version must be published to the npm repository. Therefore I have the…
Laurens
  • 325
  • 2
  • 12
0
votes
2 answers

Publishing scoped package fails with 403

I'm the proud creator of frs-replace package. After some discussions here and there, I've made the decision to move the package under new organisation's scope (frsource). So, I've created the organization, and my private npm account is marked as its…
FRS
  • 103
  • 7
0
votes
0 answers

I'm creating an NPM Package. How do install 'peerDependency' when a user installs my NPM package?

I'm having an issue with react-native-vector-icons. I have it install as a dependency and peerDependency, but when I install my NPM Package into a project, I'm getting an error. To my understanding, a peerDependency is a dependency used for npm…
jefelewis
  • 1,850
  • 1
  • 27
  • 63
0
votes
2 answers

How to publish package to npm without revealing the code

I'm trying to publish package to npm but don't want that who using the package be able to see the code. How can I do this?
nirkov
  • 697
  • 10
  • 25
0
votes
1 answer

Should I compile my react hook library, or publish only the ES6 code?

I have a very simple hook that I want to publish to npm, and I'm struggling to see why I should compile my hook at all. Let me first provide some context. My hook depends only upon React.useState and React.useEffect. The purpose of this hook is to…
rm.rf.etc
  • 884
  • 2
  • 8
  • 20
0
votes
2 answers

How to create offline private registry of verdaccio

I create private npm registry with verdaccio. I want to able to run npm install --registry="http://localhost:4873" and get all dependencies from private registry. I need to publish all packages from my project node_modules directory. I had to run…
AminRostami
  • 2,585
  • 3
  • 29
  • 45
0
votes
1 answer

webpack is not able to find css files in vendor

I am trying to publish some react components to npm. If I remove style reference from index.js webpack build works fine. If I use css reference there are error message like below; > test-package-ui@1.1.3 build D:\GitHub\TestReactJS\Tarnet-UI2 >…
TyForHelpDude
  • 4,828
  • 10
  • 48
  • 96
0
votes
1 answer

Is there a way to change the latest version of a package on npm

So for example, I made a package and published it with version 1.0.0. But then, I decided that I want to change the version of my package to 0.1.0and add a default tag latest. How can I do that?
G lander
  • 68
  • 2
  • 10