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
59
votes
10 answers

Query npmjs registry via api

I find I'm often unsatisfied with the ordering and expressiveness of searches on https://www.npmjs.com/. I guess there should be a way to programmatically query the server using https://api.npmjs.org/ or http://registry.npmjs.org/. But how? Where is…
MvG
  • 57,380
  • 22
  • 148
  • 276
50
votes
7 answers

npm publish causes 'Error: EPERM: operation not permitted, unlink ...', errno -4048

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! errno -4048 npm ERR! syscall unlink npm ERR! Error:…
Vaiden
  • 15,728
  • 7
  • 61
  • 91
31
votes
2 answers

Is there a list of all available extensions for Jupyterlab?

I am looking for a webpage or some manner to see a list of the existing extensions for Jupyterlab. I have been manually browsing through the www.npmjs.com with the search keyword @jupyterlab. Any other suggestions? Thanks
Simon
  • 1,942
  • 5
  • 18
  • 22
23
votes
2 answers

npm config - global vs local

Here are the relevant docs on the subject: https://docs.npmjs.com/cli/config It looks like these are equivalent: npm config set foo bar npm set -g foo bar so I figured that if I run npm set without the -g switch, then it would update my local…
user7898461
13
votes
2 answers

Pros and cons of node-sass and gulp-sass

I was wondering what are the differences between node-sass and gulp-sass? What are the pros and cons of each version? I see that on www.npmjs.com node-sass has more than double of an advantage in downloads. Does this make it better? Is there a…
gogo_rulez
  • 389
  • 2
  • 10
  • 24
11
votes
6 answers

NPM pulls corrupted packages from Verdaccio instance

When I perform a basic npm install in an application I am attempting to set up a dev. environment for corrupted packages end up being pulled from my Verdaccio proxy instance. To Reproduce Steps to reproduce the behavior: Set up package.json for my…
Chris K.
  • 467
  • 2
  • 5
  • 19
11
votes
2 answers

How to always get newest version when using * instead of version number in package.json?

I have a private dependency on package.json and it should always install the latest version. So instead of the version, it's *. "dependencies": { "@user/package": "*" } After the package was updated in npmjs it still installed old version with…
Lukas Liesis
  • 24,652
  • 10
  • 111
  • 109
10
votes
2 answers

How can I search npmjs.com packages on multiple tags?

How can I search packages on npmjs.com having two (or more) specific tags? I experimented with some search terms, but to no avail: keywords:webpack+plugin keywords:webpack,plugin keywords:webpack keywords:plugin The npmjs.com documentation also…
Ringo De Smet
  • 448
  • 3
  • 13
8
votes
1 answer

How to leverage npm audit?

TLDR: Is it possible to leverage the vulnerability detection abilities of npm audit as a restful service instead of the current CLI implementation? npm provides automatic vulnerability scanning on every install request against the Node Security…
Nathan
  • 7,853
  • 4
  • 27
  • 50
5
votes
1 answer

Publish Angular 6 library to npmjs with README.md

I'm developing a Angular 6 library which I want to publish to npmjs. The workspace (sample) and the library is versioned on GitHub. I've created the library by using the Angluar-CLI's command npm library lib-name. The projects README.md is located…
Thomas Schmidt
  • 1,248
  • 2
  • 12
  • 37
4
votes
2 answers

How to convert React related node packages in npmjs.com repository to ES5?

As a newbie I am trying to understand what the logic is under the hoods for react packages in npmjs.com repository. I find it a little bit strange since some modules that I install works flawlessly with my application (such as react-motion), where…
Mehmet Kaplan
  • 1,723
  • 2
  • 20
  • 43
4
votes
0 answers

How to use a python library in node.js?

I'm interested in building an NPM module in order to use the functionality of a well known python library. I've considered building a "Node.js wrapper" that allows me to write in JavaScript. Could someone please explain this process in more detail?…
govgo
  • 625
  • 6
  • 18
4
votes
1 answer

change npm package description

I published a package to npm last night through the npm cli. When I published it, I wasn't careful to review the description I wrote, and now there's a typo in it. I can't find a way to change the description. Is this even possible to do?
user2452478
  • 113
  • 4
3
votes
1 answer

Querying information about specific version of scoped npm package

I can successfully query meta information for a specific version of a specific NPM package like this: GET https://registry.npmjs.org// for example: https://registry.npmjs.org/camelcase/2.1.1 But for scoped packages like @angular/core…
Robert Hegner
  • 9,014
  • 7
  • 62
  • 98
3
votes
2 answers

How to expose more than one file in an npm package?

I have an npm package. Let's say example-package. This is normal way of importing. import RootModule from "example-package"; Now I have one more file nested here. Package Root > src > Feature > index.js Now if I have to import this Feature, I…
Edison D'souza
  • 4,551
  • 5
  • 28
  • 39
1
2 3 4