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
1
vote
1 answer

React Native node_modules folder size

After running: react-native init FirstProject I got node_modules folder with tons of modules and folder weighing about 139 MB. Is it ok? Will it affect final application size?
torayeff
  • 9,296
  • 19
  • 69
  • 103
0
votes
1 answer

Large Integer rounds when returned from npm request package

I am using npm package request https://www.npmjs.com/package/request to call Twitter API as follows: request({ url: `https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=${screenName}&${countQuery}&tweet_mode=extended`, method:…
Dogahe
  • 1,380
  • 2
  • 20
  • 50
0
votes
1 answer

Private npm for clients

I'm working in a library of components which I would like to deploy to npm. Everything is working great, however, I want my packages to be visible only for my customer, and not to everybody. I was reading that I can create a private npm, but in that…
Pablo
  • 9,424
  • 17
  • 55
  • 78
0
votes
1 answer

Getting duplicate functions inside built self created react module

So I have a react component that I'm trying to publish into npm registry. It is a simple component, that decides what component to render, and all the options to render are created by others in my corporation and imported from npm registry. The…
T.Kiril
  • 61
  • 1
  • 13
0
votes
1 answer

Published angular library doesn't has imported modules on npmjs

I want to publish a simple angular library in npmjs. So, the steps i followed was: Created the project: ng new my-project Created the library: ng g library my-lib Created a module to the library: ng g module module1 --project my-lib Write some…
0
votes
1 answer

How can I unpublish node module on npmjs?

I want to unpublish my project monetrum-node-client which I published before my personal account at npm and publish it from the company account. Is this possible? I'm waiting for your help. Error I am getting; PS C:\nodejs\prod\monetrum-node-client>…
Baltazarr
  • 35
  • 1
  • 10
0
votes
0 answers

how to use complexity-report tool on a js project

I have installed complexity-report on a javascript project Instalation is done using $ npm install complexity-report on the root directory of the project. I can run $ cr and it shows some configuration options like on the image above here. What i…
krisi
  • 3
  • 7
0
votes
1 answer

Dependencies on scoped package vs yarn

I've created scoped package @scope/eslint-config with content { "name": "@scope/eslint-config", "version": "1.0.3", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, …
Vasiliy vvscode Vanchuk
  • 7,007
  • 2
  • 21
  • 44
0
votes
0 answers

Npm publish with relative path

I have developed a library using angular2/webpack which is dependent on some core library(pure typescript/webpack). I have references to this core library using relative path "../../" in my code. This is good for building and getting the latest code…
user911
  • 1,509
  • 6
  • 26
  • 52
0
votes
0 answers

NPM package not visible on site

Today i have added 2 new packages to a newly created organisation on npmjs.com. These packages can be downloaded through the command line so no issues there. My problem lies in the fact that they do not show up on npmjs.com itself. I'd expect it…
0
votes
1 answer

python-shell from a node application

Question: How do I run my python script in my node app? This works: From command line, I run this, and it works. python generatePersonTerraform.py -s http://localhost:8080/api/person/239/exportPersonGeneration Code that does not work in Node…
Rorschach
  • 3,684
  • 7
  • 33
  • 77
0
votes
0 answers

Why did the attacker in the npm crossenv typosquatting attack create future versions?

I'm trying to understand some of the actions in the npm typosquatting attack of August 2017 In particular i'm wondering why they created future versions of the package 5.0.2 -> 6.1.1 when they didn't exist in the actual cross-env package which was…
chestercodes
  • 169
  • 1
  • 2
  • 14
0
votes
1 answer

Resize animated base64 with JavaScript

Is it possible to resize an animated base64 with JavaScript on the client side.
Daniel Izhar
  • 130
  • 1
  • 12
0
votes
1 answer

Which package is better among WPAPI and wordpress-rest-api on NPM

Links to both the packages are here Wordpress-rest-api WPAPI Which of these packages is better to use and why?
0
votes
1 answer

npm install does not download one specific file

I have created one yo generator and I can see the code is available in github and also showing in yo generator list. Its working perfectly when I do npm install to download the generator code into my local machine and also when scaffold application…
Aniruddha Das
  • 20,520
  • 23
  • 96
  • 132