How to clean node_modules folder of packages that are not in package.json?

Assume I install project packages with npm install that looks into package.json for modules to be installed. After a while I see that I don't need some specific module and remove its dependency...

Node Version Manager (NVM) on Windows

I am trying to downgrade my version of node I ran: npm install nvm and I exported the bin folder to my Windows path variable, C:\Program Files (x86)\nodejs\node_modules\npm\bin but I still...

How do you run a js file using npm scripts?

I can't get npm to work. My package.json file has "scripts": { "build": "build.js" } and I have a build.js file in the same folder that just console.logs. When I run npm run build I get the...

How to specify a port to run a create-react-app based project?

My project is based on create-react-app. npm start or yarn start by default will run the application on port 3000 and there is no option of specifying a port in the package.json. How can I specify...

How to resolve Nodejs: Error: ENOENT: no such file or directory

I have a Nodejs web app currently running on a server successfully. Now I'm trying to setup a local copy on my Development server. I currently have Nodejs, NPM and Mongo Installed just like what I...

Error shows 'cannot find module firebase-functions' when deploying a firebase project

When I am trying to deploy a firebase project it shows an error message 'cannot find module firebase-functions' in npm console.The steps(node commands) I have done are: npm install -g...

Capistrano: Deploy Laravel app on ubuntu server

I have an ubuntu staging server where I have installed apache, php, mysql, git, composer installed. I have a private git repository setup on the bitbucket, the project is already cloned to the...

Typescript - Cannot find name 'fetch' (universal library)

I'm aiming to build a Typescript library with AJAX calls (by using the fetch API), that can be used by both client-side (Webpack/Browserify) and back-end developers (Node). However, I can't seem...

IONIC - Task 'cdvBuildDebug' not found in root project 'android'

I am getting issue while trying to generate android build Task 'cdvBuildDebug' not found in root project 'android'. Please find below my ionic cordova information cli packages:...

Blank page after successful Firebase deployment

My ReactJs application runs fine on my local box, when I use the npm start command. However when I try to deploy my application using the firebase init to Firebase, I am seeing a blank page. What...

Deleting `package-lock.json` to Resolve Conflicts quickly

In a team set up, usually, I have faced merge conflicts in package-lock.json and my quick fix has always been to delete the file and regenerate it with npm install. I have not seriously thought...

Warning, FIREBASE_CONFIG environment variable is missing. Initializing firebase-admin will fail

When I follow the document of firebase, but I can not connect to firebase. Does anybody face this...

Laravel: vue components not rendering

My vue components are not rendering on the page, despite following tutorials. I have the following layout (master.blade.php): <html> <head> <meta charset="utf-8"> <meta...

Error [ERR_REQUIRE_ESM]: How to use es6 modules in node 12?

From https://2ality.com/2019/04/nodejs-esm-impl.html Node 12 should support es6 modules; however, I just keep getting the error: Question: How do I make a MVP of using es6 modules in node...

VSC PowerShell. After npm updating packages .ps1 cannot be loaded because running scripts is disabled on this system

I design websites in VSC and PowerShell is my default terminal. After updating and deploying a website to firebase earlier, I was prompted to update firebase tools - which I did using npm....

How to resolve the error on 'react-native start'

I just installed node.js & cli installed node.js installed react-native-cli npm -g react-native-cli And created a 'new project'. react-native init new_project and inside that...

[Error: Unspecified GSS failure. Minor code may provide more information: No key table entry found matching

I have been working on implementing SSO in a NodeJS application using an AD hosted on an azure VM. I am using npm-kerberos in my application. Here is how I have configured everything: I have...

how to increase waiting timeout from 30000 ms to 60000 ms of npm installing time in ubuntu

Since my internet connection is slow, i couldn't install packages from npm because of the fact that the npm returns with error as npm ERR! Response timeout while trying to fetch...

Error Truffle Migrate "VM Exception while processing transaction: invalid opcode"

I testing Truffle Migrate with project Metacoin and deal with this error. $ truffle migrate Compiling your contracts... =========================== > Everything is up to date, there is nothing to...

What is the purpose of node_modules folder?

I would like to know what is exactly node_modules folder and what is for. I know when we download any library with npm, the library goes to node_modules. I also know that, when we are going to...

Dockerfile - Build docker image for multiple Node.js app

How do I run all my Node.js file in a single container? app1.js running on port 1001 app2.js running on port 1002 app3.js running on port 1003 app4.js running on port 1004 Dockerfile FROM...

vertx module not found when using webpack

When using webpack and libraries that want to use when.js (when), it is possible that the following error is thrown when compiling: [2] ERROR in ./node_modules/when/lib/env.js 32:14-35 [2] Module...

ModuleNotFoundError: Module not found: Error: Can't resolve '../components/charts/be.js' in '/vercel/workpath0/my-app/pages'

I have stumbled in deploying my next.js app through vercel. It works completely well in local using command 'npm run dev'. But when I tried to deploy it through vercel with Github remote...

What is the simplest way to write XMP data to a JPEG image in PHP?

I only want to add the 2 fields required by Google for the Licensable badge: Web Statement of Rights Licensor URL I'm able to write standard IPTC fields but these two seems to require XMP. As a...

bootstrap 5 popover with html content

I am trying to get separate the bootstrap5 popover content from the HTML attributes like you can do with other components, but I can't get it to work. var popoverTriggerList =...

How to check logs of nexjs project deployed in google app engine standard environment?

I have created nextjs project with Isomorphic admin theme Now I am going to deploy this project to google app engine. I read this discussion and structured my app based on this repo This is my...

SvelteKit TypeError: URL is not a constructor

Im continiously running into this issue with @sveltejs/kit, URL is not used or referenced in my code. Im getting this error both in the bundled code after build as well as during development, i...

TypeError: Cannot read properties of undefined (reading 'isServer')

When trying to install yarn install in project folder getting me error yarn install v1.22.15 [1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... error An...

next failed to load SWC binary

When trying to run the command using nextjs npm run dev shows error - failed to load SWC binary see more info here: https://nextjs.org/docs/messages/failed-loading-swc I've tried uninstalling node...

Strapi V4 Error: Can't resolve '@strapi/design-system/themes'

I'm trying to run the new Strapi version 4 application. But it returns this error. Is there any bug in new strapi v4? or I'm doing wrong anything? I'm using strapi official guide to start a new...