Category "npm"

I can't get id or data-test in cypress recently

I'm trying to get a button with [data-test=ex_button] and click on it in cypress with using the following code: cy.get('[data-test=ex_button]').click({ force: t

NPM Dependency Resolution Conflicts

When I run node install I get the following output: npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: google-map-re

React - Cannot read properties of undefined (reading 'pathname')

I don't understand why the error appears. My task is to make animation between Routes. Can you suggest where I made a mistake? enter image description here I us

Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`

Recently, when I compile my scss files I get an error. The error message says: Browserslist: caniuse-lite is outdated. Please run next command npm update ca

create-react-app + npm start - 'react-scripts' is not recognized as an internal or external command

Similar questions that I have tried following "npm-run-all" is not recognized as an internal or external command "'react-scripts' is not recognized as an inte

TypeError: Cannot read properties of null (reading 'isCE') - Custom Component Library

I am having trouble building a custom component library for Vue 3 using ViteJS and NPM. I have included a basic illustration of my issue below, can someone plea

Beautify Xml with Angular

I'm trying to beautify a xml throught the package avaible in npm repositories (vkbeautify and xml-beautifier) to display into the html but is not working (I tri

Vue version not in any npm list

I have sometime to code with vue and node. I returned to my windows 10 system and using git bash I have node in my windows system : $ node -v v12.14.1 Then I d

How can I fix "npm ERR! code1"

I was trying to check some opensource projects to learn. I did npm install on terminal to dowload packages but i am getting this error and couldn't understand w

What does " yarn build " command do? Are " npm build " and "yarn build" similar commands?

What does yarn build command do ? Are yarn build and npm build the same? If not what's the difference?

Cannot install with npm package from git

I am trying to install package from git, which I forked earlier. I try npm i catsaredoomed/invest-openapi-js-sdk --save-dev I've got npm ERR! prepareGitDep 2&g

Not able to use Node.js and Crontab

I know that you can run a Node.js script in Crontab by doing something like: 0 * * * * node /path/to/your/script.js But I want to run a Node.js app, not a s

Implementing bluetooth device connection in an Angular project

Im trying to implement the possibility to find and connect to bluetooth devices in my Angular project (v12.1.0) so i'm trying to install @manekinekko/angular-we

Is there a way to "npm init" an ES module?

All modern versions of Node need to run packages as modules is "type": "module" in package.json, but I don't see any flags for npm init or yarn init that will a

Increase the version of npm in Azure DevOps pipeline

I have a YAML pipeline on Azure DevOps for building our client-side scripts via npm. The problem is that the pipeline is using version '6.14.13'. I would like t

'CI' is not recognized as an internal or external command, operable program or batch file

Whenever I try running npm run build in react, I get the following error: 'CI' is not recognized as an internal or external command, operable program or batch

npm install error: npm ERR! Cannot read property 'insert' of undefined

Trying to install express or any other package with npm brings forth this error "npm ERR! Cannot read property 'insert' of undefined" Ubuntu 22.04 LTS [email protected]

How to turn off logs from winston for jest

Currently I am testing a NodeJS app using jest. Particularly the system looks like this: NodeJS v13.4.0 Jest 25.4.0 winston@next 3.2.1 When I run tests, I lik

Can't run my Node.js Typescript project TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /app/src/App.ts

When I try to start my app on Heroku I got the following stack trace. It is just a basic ts.app like you see with ts-node and nodemon. I am really interested in

4 digit versioning in npm

I'm surprised that 4 digit versioning is not allowed in npm ecosystem: https://docs.npmjs.com/about-semantic-versioning However, I have to merge my end prod