Category "npm"

How can I get live-reload on a local npm package in a monorepo?

I'm setting up a monorepo workspace for a Vue 3 (vite + ts), cloud functions, & shared-lib (shared functions and ts interfaces etc.). I can get the import o

ng test ELIFECYCLE error when run from npm script, but not when run directly from command line

Within my Angular (v10) project, I am trying to write a script for automated testing. But when executing from that script, I'm getting an npm ELIFECYCLE error.

Why I can't install React and uninstall create-react-app in my system?

I have tried so many ways. But I can't find any solution. The problem is I can't install ReactJS in my system. Here is the message I get when complete my instal

npm package.json aliases like webpack

i am trying to alias a module however i am not sure how to do that with package.json in webpack you would do something like this: module.exports = { //...

npm tells .env file doesn't exist (but it does), and it can even print it

All I want is to simply use an environment variable in an npm script without installing unnecessary dependencies. I have a .env file in the project root, conta

npm ERR! Error: EACCES: permission denied

I'm having this famous issue while trying to install Typescript in my react app. Concretely, I am running this: npm install --save typescript @types/node @types

Cannot find module '@material-ui/lab'

I am building a front-end page where I need @material-ui/lab. After installing the package with npm, I get a typescript error when compiling: TS2307: Cannot fin

Build error after updating Svelte: Package subpath './compiler.js' is not defined by "exports"

Problem I was on Svelte version 3.0.0 and used npm i svelte@latest to update to the most recent version. Now I can't get the app to run, I always get this errro

webpack < 5 used to include polyfills for node.js core modules by default

I am beginner to react js. Please someone provide input for below issue. In local system react js application is working fine but when i am generating build fr

How to downgrade node version?

I want to downgrade my version using npm. The current version is 16.13.1. I want to downgrade this to 12.0.1. Can anyone tell me how to do it? Thanks!

JFrog: how to remove a version of an npm package?

Used this command and it returns 200: npm unpublish myapp@"0.1.23" --verbose --registry https://myapp.jfrog.io/artifactory/api/npm/myapp/ Log: $ npm --

Tailwind with Angular 13

when I run : ng add @ngneat/tailwind I got this error: An unhandled exception occurred: NOT SUPPORTED: keyword "id", use "$id" for schema ID !!!!!! VSCode. An

Expo Error starting tunnel Failed to install @expo/ngrok@^2.4.3 globally

I'm trying to run expo with a tunnel connection and I keep getting the following error: Error starting tunnel Failed to install @expo/ngrok@^2.4.3 globally: npm

NPM 8 workspaces - Install one package as the dependency for another package in monorepo

Say I have the following structure packages - @my-scope/packageA - @my-scope/packageB - @my-scope/packageC Let's say I want to install packageA as a depe

Import Typescript/JSX code directly from npm package

I am trying to build a very basic custom npm package which will be imported in a Typescript React app (created with CRA). React app ALPHA: import {MyText} from

Running node app on hosted ubuntu linux results in "unexpected token" when trying to timeout 60_000

I have a node.js app that runs fine on my Mac OS but when trying to run it on a hosted Linux, it says: /usr/myapp/src/js/main.js:165 await new Promise(r

npm install returns syscall spawn git error

I've tried to run npm install and faced these issues below I've tried to clear cache with force command, install git and update node but nothing worked here i

npm - The system cannot find the path specified (But then shows the result)

I am using npm after installing nodejs. I have installed it once before and I just finished deleting all the components because it kept giving the error in the

does npm node-cache value can be set in one file and access in another

i am working on a nodejs app where i have to maintain an api token for 24hr and then refersh it, currently i am writing that token on json file in every update

NPM Login without manually entering the username, password & email

I have been able to login to my npm registry manually, ie: on my local machine - but for some reason it's not working when it goes through the CI. The problem h