Category "node-modules"

npm shows vulnerabilities when installing firebase tools

I already installed node js and when I try to run npm install -g firebase-tools, it shows me this error, and it says run npm audit fix [#########.........] | re

NodeJS FTP not throwing error when trying to delete non-existent file

I am working with ftp-npm and I am currently facing a weird bug... I have a method called refreshStore that contains this part of code : c.delete('/pathToMyFile

How to delete all commits from private repository in github?

I want to add gitignore with 2 files( node_module,another one) in a private repository which is given by github classroom. But I already git pushed for several

Why doesn't setting NodeJS module cache to false get NodeJS to reload module?

I have 2 files, one named one.js and other name first.js.one.js var first = require("./first.js") require.cache[first.module.id].loaded=false require("./first.j

How to import js module when Typescript declaration file is located in a separate directory?

Question: When I run npm run build with the configuration below, rollup.js is unable to resolve the dependency (import) and displays the following message below

How does one import a third party library to an Angular project?

I've got a project that needs to use a third-party custom library that was given for the project. How does one correctly use/integrate it? Do you have to import

Typescript SyntaxError: Cannot use import statement outside a module (side file containing functions)

I am creating a minecraft bot using mineflayer library. After a bit of work I decided to make code readable and reusable (image of file organisation) and also s

"react" was conflicted between "package.json » eslint-config-react-app

I want to know, why this problem happens sometime. I overcome it by opening the desired folder with code directly. But can't use git bash. And saving package.js

Errors when using "npm start" (in MacOS)

I have been trying for sometime already to just run "npm start" for an old app developed with EmberJs but I get several errors. I had tried the following: Unins

Error: Cannot find module '@babel/plugin-proposal-private-methods'

When checking out of the latest master, I receive the following error when I try to build Webpack. The only noticeable change was a single gem that was installe

Making changes to an installed node package?

I have an external node package installed in my project. It does 90% of what I want but I'd like to make some changes to it. I don't want to submit a PR to de

How to fix my NexJs deployment error on Vercel "No serverless pages were built"

I'm getting this error in my log when I try to deploy on vercel Found next.config.js: /** * @type {import('next').NextConfig} */ const nextConfig = { reactS

Webpack 5 webpackMissingModule error for node_modules package

I've been working on upgrading a repository from Webpack version 4 to 5, and I've encountered a very strange problem where Webpack will throw an error at runtim

How to share node_modules and package.json files between two directories?

As I experiment with WordPress's new Gutenberg development methods, I noticed that I need to create individual block folders within the plugins directory. These

How can I use the new URL API to get request details?

After following a tutorial on Node.js I tried to get the details of a request like so: const url = require('url'); http .createServer((req, res) => {

How to use Vue in an existing typescript application without modules?

I'm trying to use Vue in "progressive enhancement" mode in an existing site, which already uses Typescript extensively. The vue tutorial shows code like this: &

importing fs in nodejs

hello everyone! I'm trying to import fs module in nodejs first I was using require to import it like this const fs = require('fs'); It was working fine for a w

how to solve Prototype Pollution issue in VS code

I installed a package that is related to my learning courses. the codes are released on 2018 and I updated all the versions on package-lock.json and package.jso

How to mock a 'request' node module for testing in jest

I am new to writing test cases in jest and i wanted to test 'mark' function and want to mock 'request' node module. let's say this file's name is app.js and tes

tried to update angular to 13 broke a bunch of stuff now trying to go back to angular 11 how to?

First I am the only one working on this project so we can completely nuke everything but the code of course. I have tried things like this with no effect npm un