Category "npm"

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

npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/react-is (over 30000ms)

When I want to create a react app I'm encountering the following error: npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/react-is

How can i do npm module support import and require?

I uploaded my first module to npm in Javascript and I want it to support import and require. Is this possible? The module is this: https://www.npmjs.com/package

Where is npm run looking for the scripts?

When I type "npm run test" in the command line, npm goes to package.json, to the "scripts" section and tries to match "test" there. So far so good. Now, the li

What's the minimum I have to do to propagate changes from a node.js file: dependency?

I have a project structure like this: main depends on file:../lib1 which depends on file:../common main depends on file:../lib2 which depends on file:../common

Version Issue in integrating mobx-react in app

I received this error for my app sample-login-page while running npm update npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR!

MAC M1 Something went wrong installing the "sharp" module

Running npm run dev (gatsby develop) on MacBook Pro M1 chip exit with Error: Something went wrong installing the "sharp" module Running npm run dev MacBook P

Error installing Sharp in docker container

When running an npm install locally everything is fine but as soon as I try it inside my docker container I get the following error: /api/node_modules/sharp/lib

Unable to resolve empty-module.js react-native and metro-cli

I've switched over from a windows dev environment to a linux environment and I'm having trouble getting react-native app going again. The application builds wit

create-react-app: How do I "npm start" with a specific browser?

npm start starts the react server on the default browser, which is Firefox for me. I like Firefox for browsing but prefer Chrome in web development for its

npm-check-updates (npm ncu): avoid breaking updates

The command npm-check-update displays mayor updates in red. This can be already seen in the first image of the documentaton. But is there a way to exclude these

Module build failed (from ./node_modules/html-loader/dist/cjs.js):

I'm trying to make a quick-start for ava electron webpack and three but something went wrong in that process. here is the repository of the project : https://