49,969 questions
-2
votes
0
answers
56
views
How to make "npm audit fix" fix vulnerabilities if it does nothing even there is "fix available via `npm audit fix`" message?
Executing the npm audit. It will be enough to show just last three issues - all of them has "fix available via `npm audit fix" message:
tar <6.2.1
Severity: moderate
Denial of service ...
0
votes
2
answers
6k
views
Do I have to enter "npm init" before installing packages using npm or can i use it afterwards as well?
I know that I can run the node.js app just as well without using npm init and moving straight to installation but as a good practice, if I forget to run npm init initially, what can I do improve my ...
9
votes
1
answer
14k
views
node.js Error: Cannot find module 'lodash.assign'
I have installed node.js in windows 64bit and i run into this when runnig gulp on local project.
another note: npm install went good with packages.json
Error: Cannot find module 'lodash.assign'
...
Tooling
0
votes
1
replies
35
views
Matching compression libraries between GO and NPM
For context:
I have 2 projects of next.js and go respectively, previously I had a logic to compress some data in next.js backend (getServerSideProps) then send this data to next.js client side and ...
2
votes
3
answers
5k
views
How do I fix the issue : npm ERR! code ENOTCACHED
My BSP is Yocto Project 3.4 (Honister).
Nodejs is v16.11.1, and npm is v8.0.0.
I refer Yocto Project Development Tasks Manual 3.22.7. Creating Node Package Manager (NPM) Packages, but when I "...
114
votes
12
answers
83k
views
Install NPM into home directory with distribution nodejs package (Ubuntu)
I'd like to use the distribution Node.js packages (or the chris-lea ppa for more recent releases) but install NPM to my home directory.
This may seem picky, but it's a pretty idiomatic way for ...
38
votes
6
answers
73k
views
How to update package.json to latest version of each package?
Before you flag it as duplicate, I have searched for the similar questions and none of them helped me.
Currently this is what I have tried:
Delete package-lock.json file.
Delete node_modules.
Run npm ...
62
votes
7
answers
99k
views
npm scripts: read .env file
I have a simple requirement: In my npm scripts package.json file I have the line:
{
"scripts": {
"example": "some-lib --argument --domain \"https://tld.com\""
}
}
Now I want the "...
Advice
1
vote
3
replies
56
views
Angular 20 @defer dynamic dependencies
I have an Angular component in a private npm package using ng-packagr and hosted on AWS (CodeArtifact).
The purpose of the component is to be a reactive form field that shows and hides errors based on ...
1
vote
2
answers
9k
views
npm install fails with "Cannot find module 'glob'"
Here is the output on the console:
floydpink@MBP mean-app (master) $ npm install
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.10.32
npm ERR! npm v2.0.0
...
7
votes
5
answers
30k
views
How to fix "npm ERR! Errors were found in your package-lock.json"
I am getting the follow error in npm. what does this mean please and how may I fix this error?
npm ERR! code ELOCKVERIFY
npm ERR! Errors were found in your package-lock.json, run npm install to fix ...
0
votes
0
answers
45
views
GridDB Node.js StoreFactory.createStore / getStore is not a function
I installed GridDB 5.7 and am trying to use the Node.js client to create a store object. My code is:
Input:
const griddb = require('griddb-node');
const factory = griddb.StoreFactory.createStore({
...
1
vote
2
answers
9k
views
Cannot find module ‘gulp’
When I run the ionic build android command, I get the following error:
WARN: ionic.project has been renamed to ionic.config.json, please rename it.
Uh oh! Looks like you're missing a module in your ...
503
votes
52
answers
1.5m
views
How to solve npm error "npm ERR! code ELIFECYCLE"
I'm trying to learn react, so I have this sample code for the full-stack react voting app, and I am trying to get it to work but after running npm install followed by npm start I receive the following ...
3
votes
0
answers
43
views
How does npm and package-lock.json behave, with respect to different operating systems/CPU architectures?
My understanding is that:
There are certain npm packages that are intended only for use on certain operating systems.
For example fsevents is only for macOS - it's for listening to file changes in a ...
0
votes
1
answer
3k
views
npm Audit on project gives many errors [duplicate]
When i run npm audit on my react project i get the following long list of issues.
# npm audit report
postcss 7.0.0 - 8.2.9
Severity: moderate
Regular Expression Denial of Service - https://npmjs.com/...
6
votes
2
answers
17k
views
How to run tslint using Angular Cli?
I am facing issue when I am trying to run tslint from Angular Cli.
> ng lint
Error
Failed to load E:\Projects\lsp-ui\node_modules\ng2-slimscroll\tslint.json: Could not find custom rule directory: ...
2
votes
0
answers
67
views
NPM - npm install fails with ENOENT mkdir error on Windows VDI (Node v24, no admin rights)
I've Node v24 installed in my Windows VDI. When running command npm i it gives the following error:
PS C:\Users\RAY\Dashboard\frontend> npm i
npm error code ENOENT
npm error syscall mkdir
npm error ...
5
votes
4
answers
2k
views
"default" is not exported by "node_modules/select2/dist/js/select2.js" when building with laravel 9 and vite
I have a Laravel 9 app. I am trying to get select2 to work however, when I do npm run build I get the error:
RollupError: "default" is not exported by "node_modules/select2/dist/js/...
2
votes
2
answers
83
views
Running `npm run wp-dev` fails with "Invalid Argument" error
I'm working through the faust.js documentation to create a headless WordPress site with Next.js. I can't get past step two: https://faustjs.org/docs/tutorial/learn-faust/#2-set-up-headless-wordpress-...
2
votes
0
answers
187
views
why are browsers not reading my imported modules but node.js does?
So I'm new to Typescript,Javascript and the NPM eco-system.
I'm creating a dapp for a client and I'm stuck with an issue that only produces when I try to use some npm packages within browser but not ...
3
votes
2
answers
13k
views
Error running npm install, returns This is a bug in `node-gyp`
I am new to Angular and Node. I am trying to execute an project created using Angular, Neo4j.
At first, I tried to run it as it is. However, i am givem the following error after opening the browser:
...
5
votes
3
answers
10k
views
How to fix requires a peer of grunt@~0.4.0 while installing grunt plugins?
I am trying to install some Grunt plugins like grunt-contrib-clean and grunt-contrib-watch
using npm install grunt-contrib-clean --save-dev
and npm install grunt-contrib-watch --save-dev
I got these ...
3
votes
2
answers
3k
views
What is the correct way to uninstall a app installed using npx?
I want to remove a package reinstalled with npx.
I tried removing the package from where it's installed (C:\Users\vince\AppData\Roaming\npm) by deleting manually the ps1, bat and the package folder ...
0
votes
2
answers
9k
views
npm install error with node-gyp\node_modules\@tootallnate
this error happens to me when I want to do the npm install and it is canceled in the middle of the process, It should be noted that this did not happen before.
I already applied many of the ...