50,265
questions
-2
votes
1
answer
20
views
npm : how to disable eslint and prettier
When I am using the command : npm start, I am getting all prettier and eslint formatting error (space before and after brackets, etc.).
Is there a way to disable it?
Eslint and Prettier are not called ...
0
votes
0
answers
8
views
@wordpress/create-block 'wp-scripts' is not recognized as a command
I am trying to create a standard Wordpress gutenberg block but I can't get paste the first step. I have cleared my npm cache but still getting the same error: 'wp-scripts' is not recognized as an ...
0
votes
0
answers
10
views
NPM inject package into my package's dependency?
I have a project, that depends on library @keenmate/js-common-helpers (which I maintain). This library has dependency on svelte-spa-router.
I made a fork of library svelte-spa-router as @keenmate/...
1
vote
0
answers
8
views
Use Web3 in React but encountered nth-check vulnerability
I am trying to use web3 in React but keep running into nth-check vulnerability when I try to install web3 packages. After googling I realized that this has been a common problem and can usually be ...
2
votes
1
answer
34
views
Module not found: Error: Can't resolve '@mui/material/Unstable_Grid2'
I am trying to use Grid2 for my React Application . But I am getting this error below:
Module not found: Error: Can't resolve '@mui/material/Unstable_Grid2'
I am using MUI v5, and I went through the ...
0
votes
1
answer
41
views
How to solve "Permission permission_denied: read_package" in a GitHub Actions workflow targeting the GitHub packages registry?
Given two private organization repositories using the GitHub npm registry where one of them is a published library and the other one tries to install it.
The application project is using this .npmrc ...
0
votes
1
answer
24
views
How to Remove Hash from index.js and index.runtime.js in Parcel with parcel-namer-hashless?
I’m working on a TypeScript project where I’m using Parcel v2.x for bundling, and I want to remove the hash from the output filenames (particularly from index.runtime.js).
I’ve been using the parcel-...
0
votes
0
answers
24
views
npmlibpublish 429 to many requests when using publish function
I am trying to automaticly publish my package to npm using the npmlibpublish JavaScript SDK. Here is my code:
const path = "dist";
const manifest = await pacote.manifest(path);
const ...
0
votes
1
answer
45
views
Upgrading Webpack with npm and Angular
This question follows my last one.
I am upgrading a legacy Node/Angular application (10 years old!) and have got everything compiled without error messages, etc. I am using an index.html folder at the ...
1
vote
0
answers
13
views
How to resolve an Unknown request from webview: {"type":"arFlameGraphRequested","command":"arFlameGraph.open"}
I am encountering an issue with my VS Code extension where a command sent from a webview is not being recognized by the extension. The command arFlameGraph.open is registered in the extension, but ...
0
votes
2
answers
38
views
Install of a custom package failing
I am creating a CLI package. I'm publishing to a GitHub account, and I have the .npmrc pointing to the @myorg:registry=https://npm.pkg.github.com. I can see the contents of the published package with ...
0
votes
0
answers
14
views
How to install vite in cpanel?
i'm making laravel-react app and tried to host it. i did the composer install, npm install. Then, i tried to npm run build but i got sh: vite: command not found
i notice there is no vite in /...
-2
votes
0
answers
13
views
changing scope in npx apps [closed]
I want to make a npm package that should be run with npx instead of being installed locally, and I want to readFileSync a file from the folder in node package and writeFileSync to a file inside the ...
0
votes
0
answers
26
views
How to ensure a patch from my Design System's dependencies is applied when importing it in another project?
I'm currently developing a custom Design System (DS) that I plan to use inside my React Native app. One of the dependencies in the DS is react-native-calendars, which has a known issue and an open PR ...
-2
votes
0
answers
24
views
React app not starting: npm error 'Missing script: start [closed]
npm error Missing script: "start"
npm error
npm error To see a list of scripts, run:
npm error npm run
npm error A complete log of this run can be found in: C:\Users\[username]\AppData\...
-1
votes
0
answers
30
views
How to use Tailwind in a Chrome extensions?
As many of you know Chrome extensions are just regular javascript/css/html files.
Since there is no tailwind.min.css file and there is no npm in a Vanilla chrome extensions this leads me to the ...
0
votes
0
answers
21
views
Showing a table that shows the Current, Latest and Wanted versions of each dependency
I have a task to update all packages specified in package.json in a project. I was able to update all, but I was asked to show proof that all packages are updated, a sort of table showing the Current, ...
0
votes
0
answers
36
views
In Jenkins, "RUN npm install" command in dockerfile run forever
This is my dockerfile. When i run this in local or VPS, it run completely fine.
FROM node:21.1.0
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
RUN npm run build
RUN rm -fr ...
1
vote
0
answers
53
views
Upgrading Node/npm dist configuration
I have a ten-year old Node application which I am now (at long last) upgrading to the latest packages. I have finally got everything compiled without error, and the reward is that npm creates a new ...
-4
votes
0
answers
33
views
How do I import modules outside `node_modules` while preserving module resolution [closed]
I have a closed-source fork of an opensource module. I am keeping the source within my TS project in private_modules/<module_name>. This contains the distributed package including its critical ...
0
votes
1
answer
52
views
Npm failed with return code: 3 and Node.js Tool Installer Task in Azure DevOps Pipeline Not Updating to Latest Version
I'm encountering an issue with the Node.js Tool Installer task in my Azure DevOps pipeline. Currently, the task is configured to use Node.js version 14.19.x. I am trying to update it to 18.19.x, but I'...
-7
votes
0
answers
41
views
How can I find a solution to this problem? [closed]
npm error code ENOENT
npm error syscall open
npm error path /Users/adriano/package.json
npm error errno -2
npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '...
0
votes
0
answers
24
views
Why is npx create-react-app not working even after the latest version of node and npm is installed?
I'm encountering this error everytime i try to create react app.
npx create-react-app .
npm error code ENOENT
npm error syscall spawn C:\Program Files\Java\jdk1.8.0_202\bin
npm error path C:\Users\...
-1
votes
0
answers
48
views
npm postinstall script running on GitHub Actions trigger
I have a workflow in my project that is failing due to an npm postinstall script failing:
name: Lint changed files
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
lint:
...
0
votes
0
answers
27
views
Attempted to load @next/swc-win32-x64-msvc, but an error occurred:
I tried to run my nextjs app but it keeps failing with this error:
[email protected] dev > next dev ...
0
votes
0
answers
36
views
How to resolve the issues with puppeteer with nodejs 20 upgrade?
Recently, I tried to upgrade nodejs to 20 and angular: 15.2.10 and replaced phantomjs with puppeter: ^20.9.0 as part of using Headless Chrome. So locally I'm able to run it but when im trying to ...
1
vote
0
answers
35
views
npm hangs indefinitely when installing @angular/cli or creating React projects – how to fix it?
I'm a beginner in web development, but I've installed frameworks like Angular and React multiple times without issues. When problems did arise, I usually found solutions quickly. However, this time I'...
0
votes
0
answers
15
views
Yarn Error: @react-native-community/checkbox@npm:3.0.0: No candidates found
I am encountering an issue while trying to install the package @react-native-community/[email protected] in my React Native project using Yarn. The installation fails with the following error:)
YN0001: │ ...
0
votes
0
answers
44
views
How do I resolve the error when building react app in cloudflare pages?
When I get this message, how can I fix it? Or can I deploy the build file? It builds normally on my PC thru vscode with latest updates but will not build for Cloudflare Page!
Current NodeJS version 20....
3
votes
2
answers
42
views
Why NPM recommend @types packages as --save dependencies?
NPM always recommand add @types as --save dependencies in their README.md file , like @types/node, @types/express, @types/bun, which shouldn't be like this. Because I always add these as --save-dev, ...
4
votes
1
answer
882
views
Tailwind error when installing shadcn in Vite React App
I was setting up shadcn in a React App using Vite by using the following command: npx shadcn@latest init
and I received an error (please see error below). I had installed tailwind and did setup as ...
0
votes
0
answers
23
views
React module @mui-icons-material installation issues
I had a working React application built on NodeJS v20.17.0. I have been using @mui/material for some components successfully and wanted to add some icons to a Drawer component using @mui-icons-...
0
votes
0
answers
45
views
How to create a library of reusable modules in NestJS for internal use as npm dependencies?
I would like to create a library of reusable modules for my company in NestJS that can be imported as npm dependencies into various projects. The goal is to avoid rewriting common modules like ...
-1
votes
0
answers
32
views
How to Reduce Build time in React Application [closed]
In many of our applications, we’ve noticed that build times can be quite lengthy due to the size and complexity of our libraries, Unused Packages.
We are using monorepo microfrontend architecture, so ...
0
votes
1
answer
36
views
NPM Command Not Recognized Despite Installation-'CALL "C:\Program Files\nodejs\node.exe""C:\Program Files\nodejs\node_modules\npm\bin\npm-prefix.js"'
I’m encountering an issue with npm on my Windows machine. When I run npm --version in the command line, I get the following output:
C:\\Users\\nares\>npm --version
'CALL "C:\\Program Files\\...
-3
votes
0
answers
27
views
While installing a project in NextJs by using npm install I am getting this error [closed]
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/eslint
npm error dev eslint@"^7.9.0" from the root project
npm error
npm error Could not ...
-1
votes
1
answer
31
views
Why following error occurred when try to install Angular CLI globally
Following error occurred when trying to install:
npm install -g @angular/cli
npm ERR! code EEXIST
npm ERR! syscall rename
npm ERR! path /Users/user/.npm/_cacache/tmp/a28abb5a
npm ERR! dest /Users/...
0
votes
1
answer
23
views
Why does my package version resolve to an older version with the caret?
I tried searching about this, but it's a tough topic to search, or there isn't anything. Sorry if I'm duplicating.
When working with other developers, we tend to name our npm package versions ...
0
votes
0
answers
35
views
Why I am getting this error when I try to do npm install?
npm error code 1
npm error path C:\Users\jerome.peterjoshua\Projects\smart_factory_assemblytraceability_wamp\wamp\node_modules\sqlite3
npm error command failed
npm error command C:\Windows\system32\...
0
votes
0
answers
24
views
VueJS application not building
I am using node 16. For VueJS, I have received code from client and my code is not giving error but during npm run build, it is getting stuck and not showing any progress in terminal.
Here is my ...
0
votes
0
answers
10
views
SOAP request Converting circular structure to JSON
I am creating an endpoint that will make a request to a SOAP service with soap npm library. This is the imlementation I'm using.
import xml2js from "xml2js";
const soap = require('soap');
...
1
vote
2
answers
45
views
ERROR in node_modules/@types/jqueryui/index.d.ts(645,11): error TS1110: Type expected
I am getting an error with npm run build within docker build.
When I developed the project about 2 years ago, it worked fine with npm run build,
When I rebuilt my development environment again, I get ...
0
votes
2
answers
88
views
SyntaxError: Unexpected token { in Pump 3.0.1
Around 10:30 PST today Sept 10 2024 my ng build command suddenly started giving this error on ng build. Yes I know I'm on an old build and I recognize the answer probably is "Upgrade everything ...
1
vote
0
answers
19
views
Transitive npm dependency causing TS error
I have https://github.com/gorules/jdm-editor installed in my project. One of its dependencies is immer. When I run tsc --noEmit I get this TS6133 error:
npm run type-check
> [email protected] type-check
...
0
votes
0
answers
29
views
Having problems with npm install for React.js why is it not working [duplicate]
I'm getting these errors in the terminal:
npm error code ENOENT
npm error syscall open
npm error path C:\Users\Sarah\package.json
npm error errno -4058
npm error enoent Could not read package.json: ...
1
vote
1
answer
32
views
How to integrate Dependabot with azure repo
I'm reaching out to see if anyone has experience integrating Dependabot with Azure Repos and would be willing to share their insights or advice on setting it up for efficient dependency management. ...
0
votes
1
answer
26
views
Optimizing Deploy Time for Large Laravel/Vue Monolith - Offload Build to Separate Server?
I’m working on a large monolithic project using Laravel and Vue, and I'm running into a major issue with CPU usage during deployments. Currently, whenever I run npm run prod, the CPU on my server hits ...
0
votes
0
answers
43
views
I have problem with npm, can't install anything
npm error code EPERM
npm error syscall mkdir
npm error path D:\npm-cache\_cacache
npm error errno EPERM
npm error FetchError: Invalid response body while trying to fetch https://registry.npmjs.org/@...
0
votes
1
answer
106
views
npm Express 4.18.2, 4.19.2 throwing high vulnerability
I create an empty NodeJS project very minimal to investigate high vulnerability message i get when I run npm i to build dependencies.
here is the basic package.json.
{
"name": "test&...
0
votes
1
answer
43
views
Installing ngrok throws repeated failures with different attempts
I'm having a strange issue with installing ngrok. Per their documentation, I'm running the following command:
brew install ngrok/ngrok/ngrok
I have the latest version of Homebrew. The following error ...