Category "npm"

Running npm inside AWS Lambda

I am trying to run npm install from inside AWS Lambda. But I'm getting the below error. Setting --prefix to "/tmp" doesn't work either. { Error: Command fai

npm init shows code: 'MODULE_NOT_FOUND', after installing nvm

I was already using node version 8.12.0. Then I installed nvm to use latest version of node (13.6.0). I ran cmd nvm use 13.6.0 . Now node is using latest versio

Why doesn't the exports field of npm work in typescript?

Our library @ltonetwork/lto, is written in typescript. We use tsc to compile to javascript in the lib folder. The package contains several sub-packages, which a

Is there a way in Node.js to convert WCF-binary data to full text XML representation?

Is there a way in Node.js (some npm package, for example) to convert binary encoded WCF data (response from some SOAP server) to its full text XML representatio

Run Jest tests only for current folder

I have Jest installed on my machine and typing jest from terminal results in tests from parent folers also getting executed. I want to run tests only from the c

Error: Cannot find module 'gatsby-plugin-utils/polyfill-remote-file'

Can't run the Gatsby application in a development server. Attempted solutions: attempted to install polyfill-remote-file but the module doesn't even exist updat

Cannot read properties of undefined (reading 'transformFile') at Bundler.transformFile

I have updated node today and I'm getting this error: error: TypeError: Cannot read properties of undefined (reading 'transformFile') at Bundler.transformFi

Failed at the @angular/[email protected] postinstall script

Hi I can't install the angular cli with npm install -g @angular/[email protected]. I keep getting this : > node ./bin/postinstall/script.js module.js:549 thr

npm package seems to be corrupted

I am getting these warnings and then errors at the end. What is the fix? npm WARN deprecated [email protected]: core-js@<3.0 is no longer maintained and not re

ENOENT: no such file or directory when running npm install command

When I run npm install, I getting the following error, npm WARN tar ENOENT: no such file or directory, open 'D:\Live Project\insyte-mobile\insyte-mobile\node_m

React SASS - Error to install SASS Module

I'm trying to use SASS formatting in my React project but it's warning me that some files weren't found, but NPM installed everything automatically, so how can

How to use Yarn 2 (or 3) to run create-react-app without specifying a new directory?

I am trying to migrate from NPM to Yarn for the sole reason of getting rid of 'node_modules' folder. I am trying to use CRA tool. However, on CRA it advises to

Set yarn environment variables without using terminal directly

We have a CI/CD pipeline that executes yarn install. I want to execute DOWNLOAD=1 yarn install command without modifying the current pipeline. I'm wondering if

npm run build fails after updating npm (EACCES: permission denied)

I have a CRA (create-react-app) and I updated npm. Following, npm run build started to fail with error: EACCES: permission denied, rmdir 'PATH/build/static/css

AWS Lambda execute shell npm install error

I'm trying to build a web app in AWS lambda and upload it to an S3 bucket. For that, I utilize child process, which is working fine locally. exec('cd /tmp/ &

Build react app multiple times with different environment variables

I have a development environment file .env.development and a production .env file for my React web app. The .env.development has a value REACT_APP_NAME=My Test

How to set up the preact-render-to-string on the express

Please tell me how to set up the preact-render-to-string on the express. https://github.com/preactjs/preact-render-to-string#render-jsx--preact--whatever-via-ex

NPM not found when using NVM

I have installed node/npm using the nvm documentation. curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash Then: nvm install

There appears to be trouble with the npm registry (returned undefined). Retrying

I'm trying to install dependencies in my project but when I run yarn install I get the following error [2/5] 🔍 Resolving packages... info There appears

Minimist vulnerability

We are facing critical vulnerability in minimist which is added as transitive dependency. +-- [email protected] | +-- [email protected] | | `-- [email protected]