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

How to publish a package to npm from AWS CodeBuild?

I have a Node.js package available in public npm repository. Also I set up a build in AWS CodeBuild to run unit tests each time there's a new push into the master branch of package's repository on github. I'd like to set up automatic invocation of…
Volodymyr Frolov
  • 1,256
  • 5
  • 16
  • 25
0
votes
1 answer

Broadcasting new npm package versions after publishing?

We're publishing our npm packages via VSTS and I'd like to send out a notification to our Devs with the new package version. Is there a standard way of doing this? Preferably I'd like to send the notification via Microsoft Teams.
0
votes
1 answer

I can't install my npm package globally

I want to create npm package that can be installed globally. I can publish the package, publish new version, but when I want to install it globally, it is not working. yarn global add outputs: success Installed "pentest-tool-lite@0.0.3"…
juffalow
  • 3
  • 1
  • 5
0
votes
1 answer

Publish different builds of a npm package to target different versions of node

I'm have a small npm package which I'm writing in node 9 and using all the latest and greatest features like async/await. I'm also using babel which allows me to use ES6 module imports and exports Babel also allows me to transpile the package to a…
gligoran
  • 3,267
  • 3
  • 32
  • 47
0
votes
0 answers

Are There any folder name that are not allowed in artifactory or npm?

I have an npm package to publish to a artifactory server. One of the folders in the package is named test. It contains necessary test scripts.The problem is the test folder will not be available in the package (the remainder of the package is…
Zer0
  • 448
  • 1
  • 5
  • 16
0
votes
1 answer

Can't import a module in my crafted module

I did a slider on mobx and bundle it using webpack 3. I excluded mobx from slider's bundle using "externals". Then I published it as package, created a mobx-sandbox and installed the slider there. In result I'm getting an error because package…
Curious
  • 63
  • 6
0
votes
1 answer

How publish and use the npm packages

My module npmpublicrepo -- package.json -- test.js package.json { "name": "npmpublicrepo", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, …
vimal prakash
  • 1,503
  • 1
  • 22
  • 38
0
votes
2 answers

`npm publish` and then `npm install` does not recover the published package

last week I published a really simple package on NPM. It only comprises three files: package.json README.md tofjs-full.node.js The tofjs-full.node.js contains the whole code, the package is called tofjs-full and it should be available after a…
0
votes
1 answer

How can I test local installation of an NPM package I've published?

I recently published a package to NPM. The package works well on my own computer, where I wrote the code, but upon npm install on a coworkers machine, I start receiving errors. What is the best way to go about installing and testing my package on…
0
votes
1 answer

npm publishing index.d.ts not export module

We are trying to create an npm package, that's the base for most of our projects, but we're having some issues with the following: the index.d.ts of our base npm package looks like the following: export * from './src/core'; declare module '*.html'…
Kiwi
  • 2,713
  • 7
  • 44
  • 82
0
votes
1 answer

.npmignore not ignoring index.ts file when publishing

I'm creating an Angular2 component library I'm publishing to npm. I'm using index.ts as my barrel file throughout the source code. I've included *.ts in my .npmignore file, however, index.ts is getting included in the code published to npm. When…
Tom Schreck
  • 5,177
  • 12
  • 68
  • 122
0
votes
1 answer

Publish ember addon to local NPM registry for developer builds?

How can I support these NPM/ember addon scenarios? developers build ember addon A and use build ember application B which uses their A local package developers only builds B installing A from our nexus NPM integration repository build system builds…
Peter Kahn
  • 12,364
  • 20
  • 77
  • 135
0
votes
2 answers

How to publish a jsx file to npm?

I just want to publish a react component to npm, but found out it's so difficult. The file is simple, but with es6 syntax. what is the steps or solution to publish it to npm so that we can just install and run it with locally installed react? I have…
Yao Zhao
  • 4,373
  • 4
  • 22
  • 30
0
votes
1 answer

Cannot find node private modules after installing them

for those of you who tried writing private modules in npm, I followed these instructions - https://docs.npmjs.com/private-modules/intro and https://docs.npmjs.com/getting-started/scoped-packages but my project can't seem to find the project when I…
The Bassman
  • 2,241
  • 5
  • 26
  • 38
-1
votes
1 answer

Publishing an npm package

How to use .ENV variables when publishing npm package. Is there any way to publish my npm package in any way with .env-variable? Thank you in advance! And i am using this version: "dotenv": "^16.0.3"
1 2 3
26
27