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.
50,327
questions
66
votes
4
answers
38k
views
Install a locally developed npm package globally
I'm developing a node package that needs to be run from shell. I know I have to install the package globally, but running
$> npm install -g ./my_module
Does not give me the desired result, that ...
3
votes
1
answer
405
views
Angular Monaco Editor - You may need an appropriate loader to handle this file type : Error while i chnaged My angular version from 12 to 16
./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/minimap/minimap.css:7:0 - Error: Module parse failed: Unexpected token (7:0)
You may need an appropriate loader to handle this file type, ...
5
votes
2
answers
8k
views
Running npm test in a debug terminal in VSCode
I'm trying to create a configuration in my launch.json which will run npm test in the folder in which the .js file resides. Running npm test manually in a terminal works fine, taking the relevant ...
0
votes
0
answers
7
views
get error in installing next@canary npm error peer react@"19.0.0-rc.0" from [email protected]
I have problem with enable ppr in nextjs 14
i got some error in installing next@canary
i try to install next@canary
npm i next@canary
npm error code ERESOLVE
npm error ERESOLVE unable to resolve ...
12
votes
7
answers
18k
views
Why am I getting errors with npx?
everytime when I run any npx command it gives me the same error.
Except when I run: npx -v then it gives me the version: 9.2.0
here is the error:
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! ...
13
votes
6
answers
31k
views
Unable to create a new project with the Nest CLI
I am following this tutorial to create a nest project. I have installed Nest CLI using this command:
npm i -g @nestjs/cli
I have checked the list of packages installed locally using the following ...
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 ...
1
vote
1
answer
535
views
How can i get the list of all opened apps on my desktop using electron.js not the list of processes?
i have fetch all the procecsses using different npm packages like
tasklist
ps-list
ps-node
in electron but still did not get the list of apps running on my desktop. i am using windows 10 and version ...
10
votes
2
answers
6k
views
`npm install` from sub directory of a Git repository
Greeting, I have created an angular library and I have built & pushed it into private repo in gitlab, now I need to consume it inside another project
so I have tried to import it using the ...
0
votes
1
answer
174
views
Getting error while executing npm create hono@latest
While creating hono template getting this error
C:\Users\admin\OneDrive\Desktop\Test>npm create hono@latest
create-hono version 0.6.3
? Target directory backend
? Which template do you want to use? ...
-1
votes
1
answer
34
views
Deploying a React application on GitHub Pages
I'm triyng to dpeloy my react application on Github Pages, but my 'npm run deploy' is not executing.
This project file is just a test application that is a brand new React App.
screen shot of vscode:
...
87
votes
24
answers
247k
views
npm error E401: Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager"
I upgraded node version to 12.16.2 and npm version to 6.14.4. After that I am not able to run npm install, as I'm getting this error
code E401
npm ERR! Unable to authenticate, need: BASIC realm="...
29
votes
7
answers
42k
views
“Error: Please install pg package manually” when trying to run “npm run serve:dev”?
I'm trying to run an app with script npm run serve:dev
but it gives an error Error: Please install pg package manually when trying to run npm run serve:dev
I already tried npm install -g pg','npm ...
3
votes
3
answers
1k
views
Tailwind classes from my library on NPM not being picked up
I've made a simple component library for React and Tailwind which I'm publishing to NPM.
I need the library to use Tailwind styles from the project that's importing it. EG if colors are overridden in ...
0
votes
0
answers
9
views
Can't startup expo project from terminal on my Mac
Command prompt npx create expo-app
returns this error:
npm ERR! could not determine executable to run
npm ERR! A complete log of this run can be found in: /Users/baguma/.npm/_logs/2024-07-...