Questions tagged [npm-install]
npm install <packagename> is a command in the npm CLI that searches for and installs a specified package from an npm repository.
npm-install
5,447
questions
0
votes
0
answers
10
views
not able to install angular cli on command prompt
I used the command npm install -g @angular/cli on the command prompt to install Angular CLI, but it just keeps loading for a very long time and is not getting installed. Can anyone help me with this?
...
0
votes
0
answers
17
views
NPM Registry 504 Unknown Host
after publishing an NPM package from a repository in gitlab im unable to install it due to host unknown error.
i have in my gitlab 2 different repositories. Repo A and Repo B.
Repo A has a branch that ...
0
votes
0
answers
59
views
I'm getting an error while dockerizing a vite react app. RUN npm install in Dockerfile with npm ERR! code ERESOLVE
While trying to dockerize vite react app using "docker build . -t "cmsxeramed-frontend:v1.0"" i got the
following error in Docker Desktop:
FROM node:19.5.0-alpine
WORKDIR /app
COPY ...
0
votes
1
answer
35
views
401 Unauthorized - authentication token not provided, GitHub npm
I have to download a package from my-org with GitHub actions for Node projects.
I have an action like this to make an .npmrc file:
> ${{ inputs.npmrc_path }}
echo "@my-org:registry=https://npm....
0
votes
1
answer
55
views
Error for angular 7.2 Data path ".builders['application']" should be object
I have an angular project that I have to clone first from a git source before proceeding with working on it, I cloned it, the angular version was 7.2, My nodejs i updated to 20.15.1 LTS and angular is ...
1
vote
1
answer
37
views
Node_Module is trying to use require (mysql)
I'm trying to set up a basic full stack web project with a SQL database using node.
I generally prefer to use import, and I've been using it for the duration of the project, so I have my type set to ...
1
vote
1
answer
36
views
CLI tool in an NPM package doesn't execute under Node
I would like to publish a NPM package with a CLI utility in it. In the package.json, I have the following line:
"bin": "index.js"
When I install the package on Windows, a batch ...
-2
votes
1
answer
41
views
How to uninstall unwanted/extra npm packages [closed]
I had mysql installed through mySQL workbench, but i wasn't sure so i ran the command "npm install mysql" and it added 11 packages and audited 12. Now I don't want the extra added packages, ...
0
votes
1
answer
17
views
Impossibility to install dependancies with Gatsby
I create a new Gatsby project (with JS, tailwind). I would like to install other dependancies like gatsby-plugin-react-helmet, @mui/icons-material for example.
Unfortunately I have error messages :...
0
votes
2
answers
41
views
Error in installing react js through npx create-react-app xyz
When I fire the above command in the terminal it shows error like
npm Err! code-ENOENT
npm Err! syscall lstat
npm Err! path
While in my instructor laptops properly works in this command. I am ...
0
votes
0
answers
45
views
Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-prefix.js'
i recently installed nodejs on my laptop running on win 11 . node -v ran perfectly . but tried running the script npm --version its showing this error
PS C:\Users\saikat mandal> node
Welcome to ...
0
votes
0
answers
28
views
"npm run dev" works in Git Bash but not in PowerShell
I'm experiencing an issue where the command npm run dev works perfectly in Git Bash but fails to execute in PowerShell. Here are the details of my setup and the steps I've taken:
My Setup:
Operating ...
-1
votes
0
answers
17
views
issue in using bootstrap in vscode
npm: The term 'npm' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct ...
0
votes
0
answers
25
views
How to list npm dependencies without deduping
I am using the following command to generate dependency list -
npm ls --production --depth=1000 --long=true --legacy-building=true
There are packages that show 'deduped'
To avoid this, I tried using -...
-1
votes
0
answers
35
views
`npm install` in pipeline continues to install dev dependencies
I have a GitHub pipeline that builds and pushes an image to DockerHub. However, GitHub Actions consistently attempts to install devDependencies, causing it to fail when it can't install better-sqlite3....