Questions tagged [npm]
npm is the package manager shipped with Node.js. It can be used to install and publish CommonJS and ECMAScript modules, jQuery plugins, reusable JavaScript code (libraries), JavaScript-based CLI programs, and more.
44,417
questions
0
votes
1
answer
12
views
Unable to run NextJS with npm run build
I recently deployed a react static app on my digitalocean server. All I did was show the root directory of the build file in the Nginx config file. And it's running well.
Now I am trying to host a ...
-2
votes
0
answers
11
views
What does "npm audit fix" do?
What does "npm audit fix" exactly do? By mistake I have use this in my code.
I was trying to install firebase but there a warning was showing and was suggesting to give npm audit fix --...
0
votes
0
answers
7
views
Install WalletConnect module not found
I'm trying to add Wallet Connect to our project(Vue.js), form here: https://docs.walletconnect.com/quick-start/dapps/web3-provider, I used this command to install it.
npm install --save web3 @...
0
votes
0
answers
10
views
Publish 'older' version of package?
I published a major version of a package on npm but I am now realizing that it should've been only a minor update. The recently published version is 2.0.0, before I published it was 1.3.0. Is there a ...
0
votes
1
answer
12
views
My terminal is reading webpack compiled successfully but browser page is empty after connecting to react-dom
Here is my app.js
import Home from "./pages/home/Home";
import Login from "./pages/login/Login";
import Profile from "./pages/profile/Profile";
import Register from "...
1
vote
1
answer
35
views
npm giving too much vulnerabilities
At first it gives 6 vulnerabilities and when I run npm audit fix--force it gives 66 and if I run the command again it returns me with 6 and this goes on and on
ERROR in ./src/App.js 13:35-41
export '...
-2
votes
1
answer
22
views
How to use an npm package in Laravel? [closed]
I was trying to use the model viewer by google in my laravel web app(viewing 3d models in blade.php).
I've ran npm install @google/model-viewer and the package is installed and my package.json ...
0
votes
0
answers
10
views
I can't run '% npm init' in VS Code Terminal
I'm learning to use SASS with an online course and the structure installs node so we can then install SASS with NPM.
After installing node he initiates NPM in the VS Code terminal with '% npm init' ...
0
votes
0
answers
7
views
Railway.app ERROR: failed to build: executing lifecycle: failed with status code: 51
I've been trying to update my discord bots code via GitHub commit and I get this error across mutiple apps.
Logs:
https://www.toptal.com/developers/hastebin/roqiveyoko.swift
I am unsure of how to fix ...
0
votes
0
answers
11
views
JavaScript heap out of memory when performing a npm ci within GitLab Pipeline
I'm running into a heap out of memory error when trying to run an npm ci on a fairly small angular component library. What can I do to get this runner to properly succeed? I tried switching out npm ci ...
0
votes
0
answers
4
views
Malloc error when trying to run node js server
I have a nodejs application, and configured to run on port 5001. When I try to run the node server using node server.js, it throws me an malloc error like below
node(6080,0x1067aa600) malloc: *** ...
0
votes
1
answer
10
views
Why does ts-node think it has a src directory, if when I look in node_modules there is none?
I am running my project using ts-node and I get the following error
TSError: ⨯ Unable to compile TypeScript:
spec/crons/dailyjob.spec.ts(51,9): error TS2589: Type instantiation is excessively deep and ...
0
votes
0
answers
12
views
Deprecation Warnings hanging Vue app build
I am getting a plethora of Deprecation Warnings related to various CSS issues that are hanging my app build.
Here is the last one before the build hangs.
Deprecation Warning: Using / for division ...
0
votes
0
answers
15
views
I can't install any packages using node.js, I'm getting it after installing react-router-sitemap
I tried to create a sitemap file in react, so I installed it but after that I can't do anything using node. if I run any commands, I getting this run.
npm install --save-dev babel-preset-es2015
...
0
votes
1
answer
12
views
WebStorm doesn't recognize webpack css import from npm package export
I updated some webpack stuff and now they expect imports using the npm packages exports.
New syntax is:
Old syntax:
It is expecting you to use imports from the swiper node modules package.json ...
0
votes
1
answer
12
views
Vue app will not build - npm audit report says Severity: high / Regular expression denial of service in glob-parent
I am having issues with npm run build on my Vue app since updating npm.
I was first receiving some eslint related errors so I updated
"eslint": "^6.7.2"
To
"eslint": &...
0
votes
1
answer
9
views
Not able to install Saltcorn in Windows 10
I tried to install saltcorn using this wiki page. https://wiki.saltcorn.com/view/ShowPage/install-on-windows-10
It is failing due to vips error
npm 8.1.0
node 16.13.0
C:\Users\varsha\AppData\Roaming\...
-1
votes
1
answer
16
views
Tailwind CSS install does not work on M1 Mac
I can't install Tailwind CSS on my MacBook Pro M1, 2020.
Whenever I try to install it with
npm install tailwindcss@latest
I get :
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE ...
0
votes
1
answer
29
views
VS Code terminal doesn't execute commands
every time I try to execute a command, the message below appears. I just installed Node, npm, React by Windows terminal, but VS Code doesn't recognize any command.enter image description here
**The ...
0
votes
0
answers
6
views
Unable to install BigCommerce Stencil CLI with NPM
I'm trying to install the BigCommerce Stencil Cli using NPM. I followed the instructions on the bigcommerce website but when I try to install the Stencil CLI I get errors.
I'm not experienced with NPM,...
-1
votes
1
answer
13
views
npm install global windows-build-tools got stuck in python installing
Tring from long time coulndt resolve .
It got stuck in python installing ,
tried uninstalling python .but same issue.
let me know the solution if anyone has
thank you .
0
votes
0
answers
5
views
webpack - "Critical dependency: the request of a dependency is an expression" issue
I have an issue in an expressjs project.
When i run the npm run build command i get this error:
WARNING in ./node_modules/aws-crt/dist/native/binding.js 54:18-31
Critical dependency: the request of a ...
0
votes
0
answers
15
views
How to limit acceptable version ranges for an entire product dependency tree?
Recently new versions of packages came out, which required new versions of another library (which in turn broke my production builds). However, they both only increased their patch version number (one ...
1
vote
0
answers
12
views
instead of auto downloading dependent package, make NPM package use the version we downloaded directly
I am working on a project in which I need to upgrade version of underscore NPM package from 1.7 to 1.8, but it is not a direct dependency of my project.
It is an internal dependency of some package, ...
0
votes
1
answer
14
views
_path2.default.basename is not a function using convertapi in angular
I am trying to integrate the convertapi in my Angular 11 application using the following documentation
https://www.npmjs.com/package/convertapi
I need to convert the pdf's into images,
When I try to ...
0
votes
0
answers
10
views
haw to fix when use npm start in react app opens differnce url?
I'm use gh-pages for publish project
I had add "homepage": "https://Mohamed0Ahmed.github.io/portfolio", to package.json
image.json
when type npm start expected Url localhost:3000 ...
-1
votes
0
answers
24
views
Edit npm module
I installed keylogger.js and I want to fix the module. I edit src/windows/keylogger.cc file and save the changes (Want to catch mouse clicks).
After starting the program, nothing changes. I try to ...
-1
votes
1
answer
22
views
How to import a dependency's .vue file
I encountered this line of code in a vue project here https://github.com/InfinetyEs/Nova-Filemanager/blob/c6595c29e23cab01be6b7e37a069b13844397c91/resources/js/modules/Image.vue#L42:
import Viewer ...
0
votes
0
answers
19
views
Vue2 component library "Failed to mount" error
I'm trying to make a vue component library (with Vue 2) to re-use across my projects, I've followed a few tutorials but they all seem to vary in how they create their install.js (or some of other name)...
-2
votes
1
answer
36
views
Vue js 3 + vue-phone-number-input [closed]
I tried to install this dependency but every time i've told that it's not existing and vue 3 cannot relove it component .
https://www.npmjs.com/package/vue-phone-number-input
thank you for helping me
...
0
votes
0
answers
10
views
npm run causes "The syntax of the command is incorrect"
In a node project I have the following "build" task:
"scripts": {
"build": "rm -rf build/ && rm -rf app/ && prettier --write source/ && ...
0
votes
1
answer
12
views
How to know under what Node.js version work a given package
Lets say I have express.js v3.16.9, how can I know under what node version will it work in order to know if I have to downgrade or upgrade?
0
votes
0
answers
8
views
fs.stat error on converting pdf to Image using npm pdf-image package
I am trying to convert a pdf to image in frontend using javascript using this https://www.npmjs.com/package/pdf-image package.
export const Convertpdf2img = async() => {
var pdfImage = new ...
-1
votes
1
answer
11
views
Cannot npm run dev. cross-env: not found . I have put path. however it says not find
My project is not able to do npm run dev.
cross-env: not found .error happened.
I changed my package.json.
below
"private": true,
"scripts": {
"dev": &...
0
votes
1
answer
25
views
-D in npm install
While installing react-router-dom, I came across a term -D in it,
npm i -D react-router-dom@latest
When I surfed online I came to know that it is -d: --loglevel info.
I need to know what exactly does ...
0
votes
0
answers
16
views
How to update node-forge module from webpack-dev-server?
Currently I am using webpack-dev-server 3.11.3 in my react application. This package has dependency on node-forge 0.10.0 which is vulnerable.
`-- webpack-dev-server@3.11.3
`-- selfsigned@1.10.14
...
0
votes
0
answers
7
views
No Response when calling FIDE-Ratings-Scraper NPM Package in JavaScript
I have used npm to install this package: https://github.com/xRuiAlves/fide-ratings-scraper using npm i fide-ratings-scraper. I use node to run a script with the following code in it:
var ...
0
votes
1
answer
17
views
problem publishing a package and installing it
I created a simple package where it only has a <div> x </div> and published it with npm publish. Then I tried to install it in a project with npm i and it throws me this error: Support for ...
0
votes
0
answers
33
views
While Migrating MaterialUI from V4 to V5: Dependency issue: not able to resolve
I'm rather new to upgrading dependencies on my local machine. I'm trying to upgrade MaterialUI using NPM from V4 to V5.
The moment I enter the code: npm install @mui/material @mui/styles, it gives me ...
0
votes
1
answer
23
views
Do I need to use npm init every time I create a new project?
I saw people explaining that npm init is necessary to create the package.json file. But in my last practice project I forgot to use npm init and the package.json file was created when I used npx ...
0
votes
0
answers
23
views
Issue with node-sass while compiling asset - npm
I am getting this error on npm run prod
npm run prod
> @ prod /opt/atlassian/pipelines/agent/build
> encore production
Running webpack ...
ERROR Failed to compile with 2 errors4:15:08 PM
...
0
votes
1
answer
29
views
Error while installing React - "Cannot find module 'block-stream'
This is the line executed:
PS E:\React_js> npx create-react-app React_js
node:internal/modules/cjs/loader:942
throw err;
^
The error tells cannot find module:
Error: Cannot find module 'block-...
1
vote
0
answers
12
views
npm run zip and yarn zip is failed ... it is responding errors
it is returning errors
I'm using nvm ... and tried the following node version:
v12.0.0
v13.0.0
v13.14.0
v14.0.0
Built the bundle with browser support for >1%, last 4 versions, Firefox ESR, not ie ...
0
votes
1
answer
22
views
npm install gives CERT_HAS_EXPIRED error for sap-cloud-sdk
I tried to install the following and got the following error.
npm install @sap/cloud-sdk-op-vdm-material-stock-service
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request ...
0
votes
0
answers
13
views
Deploy to Vercel error (Error: Command "npm run build" exited with 127)
I'm using parcel-bundler for sass on my projects, I've always used npm start instead of npm run build and it has always worked for me. But this time, when I try to deploy my project on vercel, it ...
0
votes
0
answers
12
views
Ubuntu: I cannot upgrade from Node.js v10.19.0 to a newer version
I need to upgrade my Node.js version because of this error:
ERROR: npm is known not to run on Node.js v10.19.0
You'll need to upgrade to a newer Node.js version in order to use this
version of npm. ...
0
votes
1
answer
22
views
Why does every project requires a specific node/ npm version?
Why do I have to care about npm/node version (running on machine/needed by project)?
Why does every project require a specific node/ npm version?
Where in the project is the required version noted (...
-3
votes
0
answers
19
views
Issues regarding installing Angular CLI [closed]
I am getting this below error while installing Angular CLI
changed 196 packages, and audited 197 packages in 2m
24 packages are looking for funding
run `npm fund` for details
found 0 ...
-1
votes
0
answers
12
views
Can anyone help me with a 'compile error' in React.js?
Good day. Can anyone help me with 'compile error'? I would like to load API data into the component and then import it into App.js
I don't know how to solve this error :( I don't know where the ...
0
votes
0
answers
15
views
Error: Can't walk dependency graph with web3 browserify
I am trying to browserify a node project with require() in the main.js file. It's working for the other modules but if I add
const Web3 = require('web3')
It's giving me this error:
Error: Can't walk ...