Category "npm"

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);

Vue CLI error creating new project (npm error)

Please help me on this. I can't create a new Vue CLI project. It previously works good! Now not working... Vue CLI v4.2.3 ✨ Creating project in /We

Getting a bunch of error messages when trying to install Truffle. How do I fix this?

I am using Windows 11 and Windows PowerShell to write the commands. Right now its a struggle to just install Truffle :/ I've tried restarting the computer, inst

react-hot-toast custom positioning overlay

I am using react-hot-toast npm package for my notifications and i have created custom card with the help of toast.custom() function. I need to overlap notificat

Why doesn't my 'npm install --global yarn' work?

After running npm install --global yarn, I get an output that says: > [email protected] preinstall C:\Users\(me)\AppData\Roaming\npm\node_modules\yarn > :; (no

unknown error on npm install "npm ERR! Unexpected token '.'" on using NVM-Windows, Node v17, NPM v8

This seems to be a semi-common error, but it's unclear to me what is causing it. I want to know what is causing this error and how can I resolve it. Using NVM I

Error while installing truffle using "npm i truffle -g"

While installing Truffle on my desktop, an anonymous error occurs... First it's showing the error related to python which is strange but then I install python

How do you know what package version you need in angular?

I had an asp.net core app on Angular 10.2.4, decided to upgrade to 11. Ran: ng update @angular/core@11 @angular/cli@11 it failed complaining of devkit. Uninstal

Error when trying to run dev server | React, SSR

I got this error when I'm trying to run server: E:...\node_modules\ts-loader\dist\watch-run.js:29 for (const [filePath, date] of times) { ^ TypeError: times is

How to start nuxt project on IP Address

This might be a stupid question since it seems pretty simple, but I can't get my nuxt project to run on my IP address. The Nuxt.js docs say that I have to put t

Unable to find expo in this project - have you run yarn / npm install yet?

I'm Unable to execute the expo start command. Error Message: PS C:\Users\Jacky Goyal\OneDrive\Desktop\rn1\my-project> expo start Starting project at C:\Users