Category "npm"

@IsPhoneNumber() npm class validator how to add multiple countries code

In Nest js dto I want to validate user mobile number with multiple countries Regex. How can I do this? @IsPhoneNumber('IN', { message: (args: ValidationArg

How can I run two dev servers with yarn workspaces?

I have two yarn workspaces A and B. Within each workspace, I can run yarn start to run webpack dev server on different ports. Therefore, I am trying to use the

Why does NPM not work with installing styled-components? Why does Xcode build fail if I install with Yarn?

I am trying to start a React app with React Native CLI (also tried with Expo, both with a Yarn startup and NPM startup separately). This is the error NPM trying

How to install a global npm package using fnm (Fast Node Manager)?

My Problem I have installed fnm (Fast Node Manager) from this github repo and it works all great except for installing global npm packages. For example, the wel

npm start run problem with react-app-rewire

I am trying to use mobx in a reactjs project. I have installed these packages using yarn add command: yarn add mobx mobx-react react-app-rewired react-app-rewi

React.JS App MODULE_NOT_FOUND error on 'npm start'

I have a problem with React.js. After creating a react application, when I run the command npm start I have the following error: PS G:\workspace\WEB\gab-web\cli

What is the term for a program that consumes a dependency?

I am currently working on an update to a package, which other programs use as a dependency. I'm curious what the correct term is for those dependency-consuming

Node Sass setup

I am trying to set up development for node-sass but I keep getting "6 packages are looking for funding" which affects anytime I run npm run sass, and I get back

Manifest: Line: 1, column: 1, Syntax error on Chrome browser

I have a react app that built through npm run build. GET and POST request from the front-end to back-end gives status 200 but I am getting a weird error that ma

Error: EPERM: operation not permitted, mkdir 'C:\Users\MY'

Can't run npx commands in windows 8.1 pro. showing error Error: EPERM: operation not permitted, mkdir 'C:\Users\MY' my folder path contains space. full command

Nodemon EADDRINUSE error every time I save

When using Nodemon I keep getting the EADDRINUSE error telling me the port is currently in use elsewhere even though it isn't. This error shows up almost every

Cannot find module 'caniuse-lite/dist/unpacker/agents' when running create react app

I am trying to create a new react application. I have node version 14.15.3 and npm version 6.14 Error: Cannot find module 'caniuse-lite/dist/unpacker/agents' w

Problem: ParserError: Syntax Error at line: 1, column 32

I am new to programming and I am with this problem. When I put in the Terminal "npm run build" to create the compression of my project in React.js I have this e

Suddenly, NPM script variables no longer work

I use package.json variables like this in NPM scripts: // package.json { "version": "0.12.1", "scripts": { "get-version": "echo %npm_package_version%"

TeamCity and NPM login via OAuth token

I'm trying to integrate TeamCity Server (Windows) with my private NPM repo. I have create an OAuth token. But I can't find any examples how to use the token in

I installed yarn globally, but got error "zsh:command not found : yarn"

npm install -g yarn > [email protected] preinstall /Users/myname/.npm-global/lib/node_modules/yarn > :; (node ./preinstall.js > /dev/null 2>&1 || tr

Error: ENOENT: no such file or directory, stat ... .steampath

I am trying to start the development server on a React project that I have not worked on for a long time. Upon running npm install and npm start I received the

Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (88)

I have tried to install gulp-sass latest version with npm i gulp-sass --save-dev in the begining I got a lot of errors but later solved them. But whenever I tr

Why do I need Visual Studio and C++ to install node modules

Recently I have upgraded my node version to 14+ from 10+ in a Vue.Js app. But It was giving me some error and asking to install Visual Studio including C++. Whe

Can't request to https://registry.npmjs.org using nodejs

I want to write a program to show some npm packages, there's example code: const https = require('node:https') const url = 'https://registry.npmjs.com/vue' co