Questions tagged [npmjs]

For issues relating to the npm package manager for JavaScript.

npm is the package manager for JavaScript. It's also the world's largest software registry. There are over 600,000 packages of JavaScript code available to download, with approximately 3 billion downolads per week. npm makes it easy for JavaScript developers to reuse code other developers have shared. Adapt it to new applications, or incorporate it as is. When someone revises their code, you can easily update your application to incorporate the newly improved code.

48 questions
2
votes
2 answers

python: getting npm package data from a couchdb endpoint

I want to fetch the npm package metadata. I found this endpoint which gives me all the metadata needed. I made a following script to get this data. My plan is to select some specific keys and add that data in some database (I can also store it in a…
R4444
  • 2,016
  • 2
  • 19
  • 30
2
votes
0 answers

Have I broken npm?

I published an npm module about a day ago and have bumped the version a couple of times since then. In the beginning, there was 0.0.0, then 0.0.1, now sitting at 0.1.1. When I visit the https://www.npmjs.com/package/skipper-minio everything looks…
nahanil
  • 522
  • 3
  • 9
2
votes
1 answer

How to install/download packages without using npm install or yarn install

I work in a banking domain company so here many link and websites are blocked. Currently I am working on a project where I am using react and Node.js as tech stack. So whenever I want to install any new dependency or just npm install I get access…
iamelix
  • 43
  • 1
  • 7
2
votes
2 answers

export excel sheet cell with specified date format

I am exporting empty excel sheet with some header values. In that excel sheet I want to set the date format like (mm/dd/yyyy) for date field. How to set the specified format for that cell. Here I defined excel sheet cells: var InstructionSheet =…
N15
  • 305
  • 2
  • 4
  • 17
2
votes
1 answer

What does a .pipe() function return in gulp?

In the following snippet, what will be the input to and output of .pipe(gulpIf('*.css', cssnano())) ? gulp.task('useref', function(){ return gulp.src('app/*.html') .pipe(useref()) .pipe(gulpIf('*.js', uglify())) .pipe(gulpIf('*.css',…
Alok Mishra
  • 926
  • 13
  • 39
2
votes
1 answer

Node.js, NPM - How can I see docs for old version of package

For example, right now there is "apn" module v2.1.3 on npmjs: https://www.npmjs.com/package/apn But there is issue. And I'm using 1.7.8. I know that I can go to node_modules/apn/ and read README.md. But I wonder if there is way to see docs for…
2
votes
1 answer

How to generate an RSA key using openssl-wrapper in NodeJS?

I am using openssl-wrapper, a nodejs package. It is easy to customize parameters! But i got an error, i can not make the code works properly. The implemented code: Q.fcall(function caKey() { var params = { des3: true, passout:…
Vunb
  • 484
  • 8
  • 34
1
vote
0 answers

How to publish angular 8 module to NPM

I'm working on a angular module, which I need to share between several angular applications. so I have decided to publish it to npmjs, but I couldn't find a good documentation for that. does any one have a good documentation which covers my…
Jayampathy Wijesena
  • 1,670
  • 1
  • 18
  • 26
1
vote
2 answers

Publishing to NPMJS with Travis CI

I've set up a Travis CI to run a few scripts that should: Deploy some static pages to Github pages Deploy an NPM package to npmjs Item 1 works, Item 2 doesn't. Here's what my travis.yml file looks like: language: node_js node_js: - '10' script: …
kimblim
  • 76
  • 4
1
vote
0 answers

How to install library in npmjs without dependencies?

I use npm. When I install a library with the following command: npm install select2 --save or npm install https://github.com/select2/select2.git --save all its dependencies are also installed. How to install the library only(without…
1
vote
1 answer

Not able to setup a local npm repo

I wrote a library and I want to test that people can import it from npm and use it as expected. Towards this I set up a local NPM repo like npm install -g local-npm npm set registry http://127.0.0.1:5080 local-npm This started a local repository on…
Knows Not Much
  • 30,395
  • 60
  • 197
  • 373
1
vote
0 answers

React native--Unable to get unique value with unique Id from multiple TextInput in a loop

chargeTypeModelArrDly is my Array in React js, which will iterate for the 6 time and create 6 textfield. I am unable to get unique value with unique Id which will help me to do calculation in onEndEditing(e) with unique Id. please find the code…
1
vote
0 answers

test requirements for published npm packages

I publish some rudimentary JavaScript packages in npmjs mainly for the convenience of importing them from my projects wherever I may need them. One of them (a minmax engine with alpha-beta pruning), let's call it package-foo, may be useful to a…
Marcus Junius Brutus
  • 26,087
  • 41
  • 189
  • 331
1
vote
0 answers

NPM peer dependency on JQuery OR Zepto

My problem is fairly simple: I'm working on a front-end development framework that is currently dependent on a few pieces of JQuery. However, with NPM it seems that it makes more sense to have a peer dependency, so that we can just use whatever…
rmehlinger
  • 1,067
  • 1
  • 8
  • 23
1
vote
1 answer

Backup and Restore Nexus OSS 3

I was wondering if there is a standard way to backup and restore a Nexus OSS 3 Artifact Repository. Is it enough to backup the "data" directory and copy it to a running new instance? I use different types of repositories - Maven, NPM, Docker etc.
Christoph Forster
  • 1,728
  • 4
  • 27
  • 39