Questions tagged [npm-package]
464 questions
0
votes
2 answers
How to install movie-trailer npm package without these errors?
How do you install the movie-trailer npm package without getting these errors:
$ npm I movie-trailer
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code E404
npm ERR! 404 Not Found - GET…

abdullah khan
- 11
- 2
0
votes
1 answer
how to uninstall a package that was installed with --save keyword
I'm working on a react js project with this spec:
node -v --> v16.15.1
npm -v --> 8.11.0
I usually install packages with npm install package-name --legacy-peer-deps and uninstall it with npm uninstall package-name --legacy-peer-deps which usually…

dapidmini
- 1,490
- 2
- 23
- 46
0
votes
1 answer
How can I use the Tailwind CSS CLI (and postcss) to input and output an entire folder with same file names
I'm currently using WordPress and Tailwind CSS, specifically Tailpress, and I'd like to take in all css files from ./resources/css/components and output to ./css/components, running postcss and whatever processing is necessary. The rest of the…

Justin Golden
- 41
- 1
- 6
0
votes
0 answers
"Module parse failed: Unexpected token" in dependence package when use import image
I was wrote package with use typescript, webpack and babel. Project build three.js scene with textures from public folder. And it's work fine.
Then I was npm publish package, and install this in other project(vue-cli 3). And it's work fine, but…

Metamorphosis
- 21
- 6
0
votes
1 answer
Antd, `tsc` get error: Interface 'TreeProps' incorrectly extends interface 'Omit
I want to create react package that use Antd inside project, but when I run npm run build it return this error on tsc step
Error
node_modules/antd/lib/tree-select/index.d.ts:18:18 - error TS2430: Interface 'TreeSelectProps'…
0
votes
1 answer
E404 'login-history-api-fallback@1.6.0' is not in this registry
I am trying to run npm install for a react js project. It gives the following error.
code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/login-history-api-fallback - Not found
npm ERR! 404
npm ERR! 404 …

Tariq Brohi
- 1
- 1
0
votes
1 answer
npm error while installing package in reactjs
When I try to install any npm package, I get the following error. And the installation gets stuck.
I've pasted the error below
Error msg:
This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for…

Uday
- 57
- 12
0
votes
0 answers
Unable to install the package using npm
I am trying to install npm packages but it keeps giving me errors about network connectivity.
I have tested by changing the registry
// 1st
npm config set registry "https://registry.npmjs.org"
2nb
npm config set registry…

Tazim Rahbar
- 71
- 4
0
votes
1 answer
A react app inside a monorepo (lerna) package causing conflicting 'react' package
I created :
A reusable react component package, and
A react app for testing the component
Both of them are inside a monorepo (lerna).
The problem is the "react" packages for the component & for the app are pointed to "different thing", thus using…

Heyyy Marco
- 633
- 1
- 12
- 22
0
votes
1 answer
Create react functional component with hook and publish him in npm package
I try to create own npm pack.
I created and published my component, it is working, but when I add UseEffect in my component I have errors.
What is goin on?
import React, { FC, useEffect, useState } from 'react';
import './Button.scss';
export…

Chips
- 69
- 5
0
votes
1 answer
How do I get rid of this error while using npm package in client side JS?
I was learning socket.io and when I reached the client side part, I installed a package called socket.io-client as per my instructor. When I tried to use it in my client side JS, it threw me an error. My socket.io is configured to run in the port…

Asim Koirala
- 41
- 4
0
votes
0 answers
CLI-Progress package - How to hide the progress bar on start?
I'm using the CLI-Progress package from:
https://www.npmjs.com/package/cli-progress.
This is my implementation according to the documentation example:
https://github.com/npkgz/cli-progress/blob/master/examples/example-visual.js)
const b1 = new…

Zabon
- 241
- 2
- 18
0
votes
0 answers
How to authenticate private repos in package.json
I have a private repo in package.json before npm install I changes the repo link from
git+http://gitserver.company.in/React-Components/react-dialogs.git
change to with the help of…

SAINATH REDDY BONTHU
- 11
- 1
- 3
0
votes
2 answers
Is there any way to run asscroll package in react project?
I was searching a few libraries for scroll animations and I found a very good npm package called @ashthornton/asscroll and I wanted to use the same on my react project.
But I am not been able to implement the same. It's not working the way it…

Satyam
- 567
- 1
- 6
- 20
0
votes
1 answer
create react npm package with dependencies
I am creating a simple UI library on React ts.
and on this package, I'm adding an external library like draft-js.
and now when I try to implement my package on some other project but every time it's stuck on error.
I have already spent a day trying…

anjit pariyar
- 51
- 2
- 7