50,287
questions
-1
votes
1
answer
23
views
'npm run dev' result: [Error: ENOENT: no such file or directory, open '/ddev/project-name/node_modules/@vue/apollo-composable/src/useApolloClient.ts']
I took over a Craft CMS project, which I successfully upgraded to the latest version of Craft 5.
When I run the command needed to build the JS and CSS files
npm run dev
I get the following error:
...
0
votes
0
answers
16
views
Vercel Serverless Functions Size Exceeds 250 MB - How to Optimize NPM Packages
I'm working on a small puzzle app that uses Python as the backend and a React frontend with NextJS.
While I'm trying to deploy on Vercel, I fail with the error of "Serverless Function has ...
0
votes
0
answers
17
views
Vue component not found from a personal library in another package due to path error
Library A
I've made a library which is a web client in vite/vue/vuetify. I create bundles with it and use it alone. Yet, I need to integrate it in another frontend. Here is the vite configuration to ...
0
votes
0
answers
9
views
I can't create react app using npm command
When i give any npm command like "npx create-react-app my-app" ,bellow error is showed up:
npm ERR! code ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! errno ENOTFOUND
npm ERR! network ...
0
votes
0
answers
9
views
Problems publishing to a private npm registry (CodeArtifacts) using Lerna
I'm looking to move from public npm registry to private npm registry hosted in AWS.
The cmd that we are using to publish to a private registry is
lerna publish --conventional-commits --conventional-...
0
votes
0
answers
15
views
Persistent Vulnerabilities in node_modules Despite Multiple Fix Attempts
I've been working on a project in React, and after installing my dependencies using npm install, I encountered a significant number of vulnerabilities reported in my node_modules folder.
Specifically, ...
1
vote
1
answer
40
views
Angular 18 Migration: 'TypeError: res is not iterable' Error due to spread operator
I recently migrated my Angular project from version 9 to version 18. After the migration, I started encountering the following error:
ERROR TypeError: res is not iterable
onEscalate details....
0
votes
0
answers
19
views
Permission error (EACCES) with npm after password change on macOS, unable to use sudo command
I recently changed the password for my admin account in Users & Groups on macOS and tried to install React, but I encountered the following error:
npm ERR! code EACCES
npm ERR! syscall open
npm ...
0
votes
0
answers
8
views
how to work non respiinding amplify cli package?
i installed amplify cli
when i look up if it's installed
kang@Kangui-noteubug ~ % which amplify /Users/kang/.nvm/versions/node/v20.17.0/bin/amplify
it shows this but
when i try to use it
kang@Kangui-...
-2
votes
1
answer
25
views
Make npm flatten all deps like yarn
We use npm at work for most of our projects, except for one private module where we use yarn to globally manage the versions for dependencies in other projects, simply because npm just doesn't flatten ...
-1
votes
0
answers
37
views
React JS local hosting images stopped showing
I'm working on a react JS website that I have deployed using gh-pages. Everything seemed good but suddenly all images stopped showing locally. I don't remember exactly what caused this: changing the ....
0
votes
0
answers
19
views
Unable to Compile TypeScript React Application with Path Aliases
I am trying to teach myself React, in TypeScript, however I am running into an issue with path aliases. When I try to add a component, Visual Studio Code will identify the missing import and give me ...
-4
votes
0
answers
43
views
What are the possible properties that can go into a `package.json` file? [closed]
Where can I find documentation related to the possible values that can be inside of a package.json file?
Does it vary from project to project?
Are there certain dependencies that would influence ...
0
votes
0
answers
10
views
How to uninstall deprecated @babel plugins
I have many @babel plugins in my project that have been deprecated and need replaced. How can I uninstall the deprecated plugins when they don't appear in my package.json?
Example:
deprecated @babel/...
0
votes
1
answer
26
views
Npm Angular Warning while installing Angular CLI
I am getting npm warnings when I am trying to install CLI via: npm install -g @angular/cli:
C:\Users\myuser>npm install -g @angular/[email protected]
npm WARN deprecated [email protected]: This module is ...
-1
votes
0
answers
9
views
Remove @babel plugins from angular application
package.json:
"dependencies": {
...
"@babel/core": "^7.24.9",
...
}
My package-lock has many references to indivual plugins within node_modules/@babel, which ...
-2
votes
0
answers
38
views
Nodes.js Installation
C:\Users\ASUS\Documents\React 01>npx create-react-app react-01
npm error code ENOENT
npm error syscall lstat
npm error path C:\Users\ASUS\AppData\Roaming\npm
npm error errno -4058
npm error enoent ...
0
votes
0
answers
7
views
Adding an environmental variable at the start of a package.json script prevents cd ./android from working - APP_ENV=production cd ./android
So I just noticed that if I have the following script in my package.json file:
"android:build:release": "APP_ENV=production cd ./android && ./gradlew clean ...
0
votes
0
answers
33
views
npm jsonwebtoken verifying token even with wrong secret
I have the following code (Stackblitz: https://stackblitz.com/edit/stackblitz-starters-g3vtqj?file=index.js):
const { verify, sign } = require('jsonwebtoken');
const token = sign({ id: 123 }, '...
0
votes
0
answers
39
views
Express js module not found error and node modules files not creating
I ran the npm init command in the folder I was working in. Then, I ran the npm install express command. Two files named package-lock.json and package.json were created in my folder, but the ...
0
votes
0
answers
16
views
Execute .sh remotely
I have a remote server with .sh file which I must trigger in order to restart locally running node services.
When I run the following,
ssh -i ~/key.pem [email protected]
cd /home/user
./services....
0
votes
0
answers
15
views
Regarding the issue of ionic operation
I reinstalled the system and ran the command line to report this issue. Can a friend help me solve it
run “npm i”
run “ionic cordova run android -lc”
` A problem occurred configuring project ':...
0
votes
1
answer
35
views
node:internal/modules/cjs/loader:453 throw err;
When I run
npm start
in the frontend server, in VSCode editor I get the following error:-
node:internal/modules/cjs/loader:453
throw err;
^
Error: Cannot find module 'C:\Users\UserA\...
1
vote
1
answer
38
views
How can i specify a custom output folder in package.json when using vite to build a reactjs app?
I am trying to specify an out put folder when building my reactjs app in the package.json file .
the file is as follows:
"scripts": {
"dev": "vite",
"build": &...
0
votes
0
answers
49
views
Not able to run react-native app on the latest version 0.75.2
I created a project using npx @react-native-community/cli@latest init AwesomeProject. Prior to this "npm uninstall -g react-native-cli @react-native-community/cli" was run according to https:...
0
votes
0
answers
10
views
Allow user to choose between peer dependencies
I'm trying to build a framework that expects a config provided by another library.
That library has two versions: @library/core and @library/react, both of which provide a function to create the ...
-2
votes
0
answers
21
views
My code get error when i run npm/pnpm, how should I fix my code? [closed]
alt)}for(const v of $){P.update(v)}const R=P.digest(this._hashDigest);N=R.slice(0,E.length)}Ie.set(E,N)}await Promise.all(L.map((async E=>{await computeNewContent(E);const P=E.name.replace(ve,(v=&...
-2
votes
0
answers
65
views
Unable to use npm install [closed]
When I run my npm install command the following messages are displayed. Anyone have a solution?
I use npm version 10.8.1 and Node version 20.16.0.
npm error code MODULE_NOT_FOUND
npm error path C:\...
0
votes
1
answer
35
views
Unable to build a github package that reference a package already published in github
We have two repositories each one contains an angular library
lib_a
lib_b (that uses the package lib_a)
lib_a is built and published in git-hub packages (ver 0.0.4)
The issue is on building lib_b (...
0
votes
0
answers
28
views
How to create an npm package that references CSS files and a service worker [closed]
I have an npm package that contains a main script (index.js), a CSS file (main.css), and a service worker (sw.js).
The main script adds the CSS files to the head by adding tags and initiates the ...
0
votes
1
answer
16
views
"npm ci"/"npm install" in AWS/SAM build fails with Node 18 but succeeds with 14
I'm trying to upgrade a project from Node v14 to v18.
TLDR: npm ci --omit=dev fails in sam-build with node-v18, but succeeds locally or in sam-build node v14.
I used to build a simple image for AWS/...
-3
votes
0
answers
38
views
How to Efficiently Fetch All NPM Packages from the NPM Registry API Without Timeout Issues? [closed]
I am trying to fetch all the packages from the npm package manager, specifically all the JavaScript dependencies available. I discovered the following API:
https://skimdb.npmjs.com/registry/_all_docs
...
0
votes
0
answers
27
views
Getting ORA-03106: Fatal Two-Task Communication protocol error in NodeJS calling a procedure
Currently, I'm using NodeJS/Typescript and node-oracledb (v5.5.0) to connect to an oracle database to run some queries. I'm using an oracle connection pool to get the connections. What I've been ...
0
votes
0
answers
15
views
Unknown extension .ts for wdio.web.chrome.conf.ts
I have problem with Jenkins job after moving agent to K8S.
I'm getting this error:
2024-08-26T14:59:08.150Z ERROR @wdio/config:ConfigParser: Failed loading configuration file: file:///home/jenkins/...
0
votes
0
answers
9
views
How to specify a non-npm dependency in GitHub?
I'm trying to use package.json to document the dependencies of my non-npm JavaScript project in GitHub. Based on https://docs.npmjs.com/cli/v10/configuring-npm/package-json#dependencies, I've tried ...
0
votes
0
answers
15
views
it showing error while creating react app [duplicate]
PS C:\Users\ishil\OneDrive\Desktop\JSapps> npx create-react-app my-app
npm error code ENOENT
npm error syscall lstat
npm error path C:\Users\ishil\AppData\Roaming\npm
npm error errno -4058
npm ...
0
votes
0
answers
14
views
How to login to npm in bitbucket pipelines when you need to install a private repo?
I am trying to automatically build a react native expo project via a bitbucket pipeline but am running into an issue of using a private repo. Our project uses 2 private repos and when trying to npm ci ...
1
vote
0
answers
40
views
Same class instances over different projects
I'm having issues with instances of the same package over different JavaScript projects and I'd like to know if there is any workaround other than modifying the original package. My project setup is ...
-1
votes
1
answer
42
views
Relative path issue when executing ES module file with node
I need little help with building custome npm command to run ES module file, I am using this file to seed my database.
i am using sequelize in a Node api (not using sequelize CLI or migrations) i want ...
0
votes
0
answers
127
views
How do I resolve dependency errors when there isn't an stable release for eslint-react-plugin-hooks? Do I just use a beta version?
I'm trying to update my eslint package to a newer version due to a deprecated dependency rimraf package but run into an issue with eslint-plugin-react-hooks. From what I understand, eslint-plugin-...
-3
votes
0
answers
37
views
How can I build a .NET Core app using npm run build and output to a folder? [closed]
I am running npm run build for my .NET Core app, but I can't seem to find the build directory after compilation or the .next directory.
I was wondering if there is a switch where I can do the ...
0
votes
0
answers
27
views
How can I create a configuration to update dependencies?
I have the statusbar_commands extension installed
How can I create a button to update my dependencies in my code
I tried the following code
{
"statusbar_command.commands": [
{
"...
0
votes
1
answer
30
views
How can I fix this pipeline?
I have searched EOTP error but this is in github action, I cannot input the 2FA code. Moreover,
I cannot see the log and have no idea what has happened.
name: art-component-release
on:
push:
...
-1
votes
0
answers
18
views
uses components(MUI , Router , ..) in React , Get error [closed]
I am learnin React , while use @MUI or react-boostrap , Router ... get error :
error in inspect : Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This ...
0
votes
0
answers
30
views
React.js issue while running 'npm start'
I wanted to run an existing project of React in my desktop and having this issue when I put npm start command. I am using JetBrains WebStorm IDE.
I tried the command npm start in the terminal to run ...
0
votes
0
answers
41
views
+50
Typescript composite project with NextJS
I have reorganized my project in NodeJS/Typescript using workspaces and project references. One of the workspaces (sub-project) is a NextJS application, and the recommended tsconfig.json includes the ...
1
vote
1
answer
21
views
Unable to publish & run a scoped NPM package for use with NPX
I've created a scoped package for use with NPX. It works as I expect when running locally using npm link to test it, but after publishing the package, it won't install it.
My package.json is as ...
0
votes
0
answers
23
views
"Error: EISDIR" and "npm ERR! code ELIFECYCLE" how to solve?
When I type npm start this error appears, regardless of whether I open the command line in a specific file or somewhere else.
This is all that is produced when writing this command:
C:\my-lamb-town>...
1
vote
0
answers
15
views
npm run <Tab> it's not picking-up/autocompleting script names from monorepo workspaces package.json
When using npm run <Tab>, autocompletion only displays script names from the root ./package.json and doesn't include script names from package.json files in subdirectories like ./client/package....
-2
votes
0
answers
30
views
Express version [closed]
In package.json express version showing 4.19.2 . but in terminal npm express -v showing 10.8.1.
why this difference ?
I tried uninstalling and reinstalling , updating. also tried sudo npm express ...