npm-publish Questions

2

I've tried many different docs and tutorials to publish a scoped npm package on a private gitlab instance. So far I've: Created a deploy token with package write & read permissions: Setup a .n...
Ethnic asked 8/3, 2021 at 19:4

2

Solved

I have created a private npm package which is published to Azure Artifacts. To publish my npm package I have a npm publish step in my tfs build definition. I am using tfs version 16.131.28507.4. T...
Eirena asked 11/11, 2019 at 15:45

7

Solved

I'm trying to publish my NPM package: npm publish. I get the following quite cryptic error: npm ERR! path c:\Temp\npm-20936-b98f84c8\tmp\fromDir-02dd5394\package.tgz npm ERR! code EPERM npm ERR! ...
Pingpingpong asked 7/9, 2017 at 7:11

2

I am using lerna and yarn workspaces in my monorepo. The package structure looks like this: root `--- packages |--- pkg1 | |--- src | | `--- index.ts | `--- dist | `--- index.js `--- pkg2 |...
Babysitter asked 7/5, 2020 at 23:20

1

Solved

I've developed a small Ui component for internal use in a company and published it to npm but when I install that package I only get an index.js file in node_modules folder. I'm not using any packa...
Lackadaisical asked 6/9, 2021 at 14:13

1

Solved

Is there a best way to publish a previous major version of an npm package without adding a tag for it? Our current major version is 3.x (v3) so we npm publish that version to automatically give it ...
Prerogative asked 2/7, 2021 at 19:0

1

Solved

I'm trying to export two web components in a public package on npm, using Vite with TypeScript. Vite has a Library Mode which works well. The ESM and UMD files are both being transpiled into my /di...
Stagemanage asked 20/5, 2021 at 8:37

2

I get this error when updating my package. "cannot be republished until 24 hours have passed" in nodejs
Quiteris asked 7/2, 2018 at 10:17

1

Solved

I have a project that i publish on a private npm repository. Under node v14.16.0 (npm v6.14.11), the command npm publish run well and my package is published on my private repository. I upgraded np...
Forsake asked 18/3, 2021 at 16:16

0

Current Behavior We are building shared-code projects with tsdx, and we only have one doubt, concern we can't get an answer. How to export subfolders for packages published with TSDX. Let's use my ...
Gooseherd asked 2/3, 2021 at 10:52

2

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: /home/t...
Melloney asked 7/12, 2020 at 5:1

2

When I try to use React Hooks in module which I use as dependency it's fail. I'm getting a following error: Invalid hook call. Hooks can only be called inside of the body of a function component....
Govan asked 11/10, 2019 at 14:17

2

I published one package as a public & i am trying to search it on npm (https://www.npmjs.com/), but there is no package available with that name on npm. Tried with: npm install package-name...
Delay asked 6/1, 2019 at 6:43

6

Solved

I'm using a module for my angular app called angular-translate. However, I've had to make a few small modifications to the source code to get everything working the way I'd like, and now I want to ...
Eskilstuna asked 10/11, 2016 at 12:49

3

Solved

I am wondering how to configure the .npmrc file so that I can have a default registry and a different scoped registry with authentication. I am using Nexus for the private repository and I am not...
Theola asked 21/3, 2018 at 11:16

0

I have created a TypeScript library that has been published to npm using the following structure: mobx-state-router |--- package.json |--- src | `--- index.ts (TypeScript source) `--- dist |--- i...
Litigant asked 21/5, 2020 at 15:40

0

I am publishing a library to NPM. The library was written in Typescript, and the result of the Typescript compilation is put in a lib/ folder. The main file is an index.ts that exports my public AP...
Jae asked 24/2, 2020 at 5:48

4

Say I want to generate a pre-release NPM version. Originally I have this: "version": "0.0.1" I tried: npm version prepatch npm version prepatch npm version preminor npm version preminor tha...
Needless asked 13/6, 2018 at 20:58

0

When running lerna publish within our pipeline like so : lerna publish --yes --force-publish=* --canary --preid 2760 --registry Is there a way of getting the actual published version of the art...
Damali asked 29/8, 2019 at 0:48

1

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 b...
Sweetandsour asked 16/4, 2019 at 16:46

1

Solved

I want to start publishing npm packages to a scope. Do I need to register as a user with the scope as my user name? Example if I create a package like this: ole@MKI:~/firstpackage$ npm init Use...
Bolingbroke asked 6/5, 2017 at 18:31

3

Solved

I am not sure weather it is possible or not. Is it possible to prevent publish when npm publish ran directly and make it accessible only via scripts. User must be denied when npm publish is execu...
Klina asked 23/7, 2018 at 18:11

1

Solved

My package is structured as follows: mypackage |--- src | |--- component1 | `--- component2 `--- dist |--- component1 `--- component2 When I publish it to npm, I would like it to loo...
Addie asked 6/1, 2018 at 6:10

1

Considering the Node.js package manager, namely npm - I was curious if the publish command performs the pack command prior to the publish or if it does something different altogether? So if I were ...
Haws asked 13/5, 2016 at 14:5

2

I am trying to publish my module to see how it works. I installed npm and then created my very simple module. I used npm add user to add myself as a new user. I received the following message: ...
Aster asked 10/9, 2016 at 18:16

© 2022 - 2024 — McMap. All rights reserved.