Questions tagged [npm-package]
464 questions
2
votes
0 answers
How to create a fully type-safe NestJS package with dynamic objects in TypeScript?
I am currently working on a personal project to provide easy access to different storage providers through a NestJS package. I want the package to be fully type-safe but I am experiencing difficulty achieving this.
This is an abstraction of the…

samsepi
- 41
- 4
2
votes
3 answers
Installing a private package from Gitlab with Yarn
I have a private npm package that is published to the Gitlab Package Registry using a Gitlab CI pipeline.
I want to install this package in a project using yarn.
Following the documentation helped me come up with the following .npmrc file…

uiguig
- 61
- 7
2
votes
1 answer
How to read the output from, and resolve an npm dependency conflict
Here are the errors I'm getting when I try to install my project:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @angular-devkit/build-ng-packagr@0.8.0
npm ERR! Found: tsickle@0.32.1
npm ERR!…

mattstuehler
- 9,040
- 18
- 78
- 108
2
votes
1 answer
@types/express-serve-static-core/index.d.ts causing build errors
Started encountering this issue after pushing changes which has nothing to do with the node_modules or the deployment pipeline.
This issue is also seen when trying to rerun an already successful deployment in bitbucket.
I even tried updating the…

LST
- 43
- 7
2
votes
1 answer
webpack not able to resolve node_modules material-icons
Here is the error I am getting
ERROR in ./node_modules/material-icons/iconfont/material-icons.css…
2
votes
0 answers
I'm trying to Install the NCD packages for my wireless devices from the command prompt, for node-red and keep getting these errors?
C:\Users\a_sal>npm i ncd-red-wireless node-red-dashboard
npm ERR! code 1
npm ERR! path C:\Users\a_sal\node_modules@serialport\bindings
npm ERR! command failed
npm ERR! command C:\windows\system32\cmd.exe /d /s /c prebuild-install --tag-prefix…

Aaron Saline
- 21
- 1
2
votes
1 answer
Why I'm getting this type of error while installing a npm packages
added 1 package, and audited 1466 packages in 16s
206 packages are looking for funding
run `npm fund` for details
6 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit`…

Avinash kumar
- 71
- 1
- 6
2
votes
1 answer
TypeError: AWS.S3 is not a constructor
I am trying to create a NPM package but before I do that, I am testing it using the
yarn link command and then importing the node_module into another project.
This is what my package.json for the NPM package looks like
{
"name": "qa-data-tool",
…

Orbita1frame
- 203
- 4
- 13
2
votes
2 answers
Angular revert from 13.3.8 to 13.3.7
When I run :
ng v
I get the version in the screenshot. Where does "Angular: 13.3.8" come from and how can I revert it to 13.3.7 ?
Also, where do the Packages come from in this screenshot? They differ from my packages.json
I checked the install and…

Ian Vink
- 66,960
- 104
- 341
- 555
2
votes
1 answer
Installation of private npm package from CodeArtifact fails with "401 Unauthorized" with yarn and yarn.lock
We have a private npm package in CodeArtifact that we want to install as part of our package.json.
We are using Yarn as a package manager and have a yarn.lock file to control the versions.
When trying to install with yarn install --frozen-lockfile…

Lola Bach
- 101
- 1
- 3
2
votes
1 answer
react-hook-form FormProvider not working when using it from internal component library
I use react-hook-form FormProvider in my FormContext component, like this: (this component is in my component library)
const FormContext: FunctionComponent = ({
children,
...options
}) => {
const formMethods = useForm(options);
…

Tigran Yengibaryan
- 81
- 4
- 7
2
votes
2 answers
How to use Node Sharp package
I am actually trying to resize image using sharp package. For Reference: https://www.npmjs.com/package/sharp
I am getting image data from frontend (which is in react) to Backend (Which is in node) as below
imageData {
name: 'xyz.JPEG',
…

Sai sri
- 515
- 12
- 25
2
votes
0 answers
Using react-native-draw-on-screen package, missing Controls module?
I'm trying to build a react native app with a drawing feature and I came across this package: https://www.npmjs.com/package/react-native-draw-on-screen
This package was also mentioned in this post:
How to draw on the screen with React Native?
It…

eycho
- 21
- 1
2
votes
1 answer
Is there an npm package for converting RTF strings to PDF file in node.js?
I'm looking for an RTF to PDF converter for Node.js. I'm not finding too many packages over at the npm site.
The application is as follows: I need to pull an RTF document (created in Word and saved as .rtf) from an AWS S3 bucket. Then I need to read…

gib65
- 1,709
- 3
- 24
- 58
2
votes
3 answers
How to send a npm package's static assets to a nuxt application?
I'm trying to send assets from an npm package to a nuxt application. Has anyone had success doing this?
I have an vue component as an npm package with stucture:
-src/
-assets/
-noun-filter.svg
This vector image is loaded in the vue component's…

Jesse Reza Khorasanee
- 3,140
- 4
- 36
- 53