npm install not installing '#angular-devkit/build-angular:dev-server" - node.js

On a MEAN course project I cannot run it because I am getting the below error:
$ npm run start
> mean-course#0.0.0 start
> ng serve
Node packages may not be installed. Try installing with 'npm install'.
Error: Could not find the '#angular-devkit/build-angular:dev-server' builder's node package.
So I go into the package.json file and under "devDependencies" add the line:
"#angular-devkit/build-angular:dev-server": "15.1.6",
Then I try to run npm run start and I get the error below stating that the dependency is still not installed:
> mean-course#0.0.0 start
> ng serve
Node packages may not be installed. Try installing with 'npm install'.
Error: Could not find the '#angular-devkit/build-angular:dev-server' builder's node package.
Anybody have the same problem or know a solution? Any help would be appreciated thank you!

Try this command in your terminal:
npm i -D #angular-devkit/build-angular

Try to run this
npm install --save-dev #angular-devkit/build-angular

Related

I'm getting this error while installing hardhat -> Cannot find module '#nomicfoundation/hardhat-toolbox

hardhat-error
tried npm install --save-dev hardhat
and then did npx hardhat to check if it was installed peoperly but it's not working
checked both 'hardhat-config-js' and
'package.json' for nomicfoundation dependencies and it is there but still I'm getting this error
You should be running on windows. Run the following command.
npm install --save-dev #nomicfoundation/hardhat-toolbox

npm install issues - react native project - mac

I am trying to clone a remote react-native project but I am getting errors when running the npm install command to download all the dependencies in the package.json folder.
I am in the same root directory where the package.json file is.
This is what I get when running npm install:
when I try doing npm install --force or npm install --legacy-deps I get:
I've tried uninstalling node reinstalling to the LTS and current version.
This is the process I followed when trying to install the dependencies:
clone remote repo
npm init
npm install
I am not quite sure what else to do any help would be greatly appreciated.
First you need to get in project directory then install the node packages
cd <ProjectName>
npm install

Cannot Install Npx

I am getting a strange error when trying to install npx. I have node, but it says I don't.
➜ Desktop brew install npm
Warning: node 14.4.0 is already installed and up-to-date
To reinstall 14.4.0, run `brew reinstall node`
➜ Desktop npm install -g npx
zsh: command not found: npm
Why is that happening?
npx is pre-bundled with npm .no need to install npx. if u want to start a new react project (I presume)give npx create-react-app project name given that you installed the latest node version.

Laravel Compilation "Error: Cannot Find PATH/node_modules/laravel-mix/.."

When I run commands like:
npm run dev
npm run watch
to compile my project. I receive an error that says the laravel-mix directory does not exist.
Error: Cannot find module 'PATH/node_modules/laravel-mix/setup/webpack.config.js'
I have deleted the node_modules directory and used npm install to attempt to get it to install properly and it still is not there. "Laravel-mix" is in the package.json file as a dependency, so to my knowledge running npm install or npm install laravel-mix should do the trick, but it isn't working. Any information about this would be greatly appreciated.
npm -v 6.14.1
node -v 12.16.2
Have you already run the following?
npm install laravel-mix
npm install cross-env

NPM install grunt#version - No repository field

I'm trying to install grunt since the grunt watch for example is not working, shows as error: grunt command not found. When I do npm install grunt#0.4.1 --save-dev this is what appears:
And does not let me install it. I tried doing another package.json, doing a clean npm install and still, no idea what's going on.
Can anyone help me please, how can I solve this problem?
It seems that you need to install the Grunt CLI globally:
npm install -g grunt-cli
With this in place you should be able to setup grunt for any new project.

Resources