Questions tagged [npm-package]

464 questions
0
votes
0 answers

NPM : Is it possible to have / use package with different declared module name and package name

I am a beginner with npm package management and am currently migrating a .js package to a new one in a different registry (as the old one is scheduled to be deprecated) and found that the older versions were not ported properly, causing an…
0
votes
0 answers

cannot authenticate with activedirectory package nodejs

I set up an univention ldap server and try to connect to it with my nodejs server. For that I first tried the ldap-authentication ldap-authentication package which works fine with the following config: await authenticate({ ldapOpts: { url: ip…
0
votes
1 answer

NPM issue while running any npm commands

'CALL "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external command, operable program or batch file.
Pankti Shah
  • 141
  • 8
0
votes
1 answer

Error: Cannot find module './internal/re'

PS C:\Users\QHTF\Desktop\Statistics> npm node:internal/modules/cjs/loader:985 const err = new Error(message); ^ Error: Cannot find module './internal/re' Require…
KuyaW
  • 1
  • 1
0
votes
1 answer

Define dependencies in package.json so that the react package written in React v17 works in react 18 also

I have written an npm package in React v17.0.2. The package.json file looks like this { "name": "shoe-store", "version": "0.1.0", "private": true, "dependencies": { "react": "^17.0.2", "react-dom": "^17.0.2", "react-icons":…
0
votes
0 answers

TypeError: crawler is not a function - when trying crawler-request npm package

I'm trying to get crawler-request to work and have worked my way back to it's simplest "hello world" which is still failing with the same error. Am I making some newb mistake? error: TypeError: crawler is not a function at Module._compile…
0
votes
0 answers

Module not found error even when overriding webpack config

When running npm run build I'm getting Module not found error. The extension in the request is mandatory for it to be fully specified. This is relating to a shared package I created using create-react-library. This lib is being referenced in a new…
roonz11
  • 795
  • 1
  • 13
  • 24
0
votes
0 answers

NPM peer dependency conflict caused through (correct) peerDependency

I created several NPM libraries myself. One of them is called datahive-ngx-graph and has version number 0.0.11 Another one is called datahive-ngx-spo-layout and has a version number 0.0.7 The datahive-ngx-spo-layout needs the ngx-graph package and…
David Mason
  • 915
  • 1
  • 9
  • 27
0
votes
0 answers

How to configure two different package with different projectId in same registry on .npmrc file

I have two different npm packages generated on my gitlab registry. I need to import both the packages in my new project. Both the project has different projectId. How can I configure this in my npmrc file? I have done the below for one…
Ashwin Allen
  • 99
  • 1
  • 6
0
votes
1 answer

How to create an repository and npm package in dell artifactory by jfrog

How can I publish Npm Package to custom JFrog artifactory using gitlab how to create a new repository in Artifactory and then package deploy to the jfrog. I want to create an npm package. Basically, a common code which I want to use for all of my…
0
votes
0 answers

How I can apply styling to active slide in react-image-gallery?

I want to add custom styling to the slides and gallery control buttons in react-image-gallery But I am confused how to do this. I have searched the assets on google and tried to do it on my own but I am unable to apply custom styling on it. This is…
0
votes
1 answer

Vite - How to npm run dev when I have deleted both package-lock and package.jason folders?

Im following along a tutorial on YT on how to code and deploy a react website. I created my project using Vite. Everything was reflecting fine on my browser window until I closed the terminal and now my browser returned "This page can't be reached".…
Rochin
  • 1
  • 2
0
votes
0 answers

script to auto-update version of packages in package.json

I manage a custom npm repository with several packages dependent each other. When I modify a package (A), I updated its version. At this point, I should update all its references in other packages (B,C) to let them download the new version. Indeed,…
DeLac
  • 1,068
  • 13
  • 43
0
votes
1 answer

Npm failing to update versions

I am attempting to update my npm packages. I have been having problems with what I believe I should do compared to what is happening. Reference to https://docs.npmjs.com/updating-packages-downloaded-from-the-registry I ran the npm update -dd and…
Jim
  • 59
  • 1
  • 1
  • 6
0
votes
2 answers

Local package dependencies conflicting with the main project dependencies

I started learning about how to create our own npm package and i created one. Now in this package, i want to create a dialog box for react native apps using typescript. Here are my files; Package.json { "name": "rn-dialog", "version": "1.0.0", …
Irfan wani
  • 4,084
  • 2
  • 19
  • 34