Category "npm"

How to resolve err code 403 Forbidden in npm install?

I'm trying to run npm install in a public repository. I’ve cloned it to my PC but it throws me this error. I’ve tried verifying my npm account, and

Webpack compilation error with Cypress-webpack-preprocessor

I am not able to run cypress test and getting foll error: When I ran cypress run: It is giving below Webpack compilation error Webpack Compilation Error ./cypre

why npm install does not respect version in package.json

Nodejs version - 14.17.3 npm version - 6.14.13 I am confused over the difference in package versions - the one I have declared in package.json is different than

How can i disable the Maximize button for BrowserWindow in Electron?

Im new to Electron.js and im trying to disable the Maximize button, i know its possible but i don't know how to do it. I tried frame: false but its not working

Yarn - How do I update each dependency in package.json to the latest version?

I have a react app with deprecated dependencies. To make it work, I have to update the dependencies to their newer (but stable) versions. As per this stakoverfl

What should the entry point be for a pure CSS npm project?

I have a CSS file that I want to upload to npm. My project's folder structure is as follows: my-project (folder) | +---- css (folder) | +---- my-pro

How to fix Next.js Vercel deployment module not found error

My next.js app works on my machine and was working when deployed on Vercel but now it fails when building on Vercel with the following error: I've tried delet

ESBuild in NextJS: "You may need an appropriate loader to handle this file type" - /node_modules/esbuild/lib/main.d.ts

I am using mdx-bundler (which uses esbuild + node-gyp) in next.js. I have been working on this project for some time and everything is working. Now my partner j

npm run Build:dev error when doing Advance UI Customization

I wanted to customize the UI elements in the publisher portal and followed this guide But I get the following error when running this in cmd; npm run build:dev

How to deploy our app which is running on parcel bundler

In my recent project, I have made an animated website using gsap and parcel-bundler. When I want to run it, I will type parcel index.html or npm run dev and it

Huge increase in npm install times when upgrading from node v10 to v14 maybe due to date-fns module

I have recently upgrade from Node v10 to v14 in my project. With Node v10, npm install takes arround 1 minute. However, running npm install with Node v14 and wi

Get NPM Package README via API

I need to get NPM Package README files in PHP. Does anyone know an API that I can use to grab this? I've tried to use registry.npmjs.org, although the latest ve

How to exclude the folder but include all of its files and sub-folder while npm publish in angular library

When I build my angular library app i get the artifacts in the folder dist/. This means when the library is imported in another application it is done like this

Error creating react new project. using create-react-app

I am facing issues while creating a new project for React. Here is the command for how I am creating react project. npx create-react-app helloworld But the pro

NPM TypeORM - "Error: Duplicate migrations" after modifying/deleting migration file

I previously add a column to an existing table using, npm run migration:generate <filename>. However, I later realized that I misspelled the column name s

npm install returns error. Showing "no such file directory ../node_modules/mongodb-client-encryption/deps/lib/...'

I have a pretty big NextJS project going on, using mongodb but I havent been able to run npm install on it as it gives the following error. npm ERR! code 1 npm

deprecated errors while installing packagesin gastby

I am using a Gatsby theme and facing this errors while installing packages , I've tried npm install --legacy-peer-deps but when I run gatsby develop I get th

Install libmysqlclient-dev along with npm in dockers

I have an error when trying to install the libmysqlclient-dev package together with npm for some reason when installing libmysqlclient-dev it removes npm Step 1

How can I install a subfolder of a github repository using yarn?

I'm trying to add a library as a dependency to a project. This library is setup in a fairly peculiar way, with this file structure package.json library/ pac

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/parser' is not defined by "exports" in /usr/app/node_modules/postcss/package.json

Did a docker-compose up to build my project, but there's something wrong and I am getting this error: node:internal/errors:464 ErrorCaptureStackTrace(err);