Angular Material installation issue - "no such a file or directory" - angularjs

I am trying to install Angular Material using npm. I have installed Node.js. Whenever i try to install Angular Material using npm command in the command line I am getting the following error.
npm WARN enoent :no such a file or directory,open
'c:\users\hp\package.json'
is anything missing ???

The folder you are working on does not seem to be a node project folder. NPM expects a file called package.json to be in the root of your project before it can start installing dependencies.
You can create this file via helper by running npm init

Related

Error while install MD Bootsrap 5 in my react js

When I want to install a plugin in react js using MD Bootstrap 5 then it gives me an error. I have done with installing mdb-react-ui-kit in my package.json file.
You are mixing git commands with npm. git is a source control software while npm is a package manager for node.
If you want to clone a project you can run:
git clone <repo_address>
If you want to install an npm package, you need to be inside the project folder that you want to install, make sure that there is a package.json file and run:
npm i mdb-react-ui-kit

Adding bootrap-react from NPM creates another package-lock file in Visual Studio

I am new to react and trying to add react-bootstrap to my project.
I've got a Soultion with multiple projects in Visual Studio.
As I've understand, I need to add a package for Bootstrap support.
Whenever I try to run:
npm install --save react-bootstrap
I am getting the following error in Package Manager Console:
npm WARN saveError ENOENT: no such file or directory , open 'C:\Dev\xxx\Projectname\package.json'
Another package-lock.json files is being added to the root of the solution.
Why does that happen? Shouldn't the dependency to react-bootstrap just populate the already existing package-lock.json inside the chosen project? What am I doing wrong? Is there another way to add it?
I managed to solve this by entering correct DIR before getting the package..
CD:
cd ./Project/ClientApp
Install:
npm install --save react-bootstrap

Error while installing create-react-app globally using npm

I am unable to install react js using NPM. I am getting following error.
Your environment has been set up for using Node.js 12.3.1 (ia32) and npm.
C:\Users\User>npm install create-react-app -g
npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! errno UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! request to https://registry.npmjs.org/create-react-app failed, reason:
unable to verify the first certificate
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Roaming\npm-cache_logs\2019-12-14T05_54_58_7
16Z-debug.log
I am form India and I am not using any corporate firewall or VPN.
hey can you try using npx create-react-app ${your project name}
I ran the following command in the command line and worked for me:
npm config set strict-ssl false
Although it's not a great idea.
run this command to turn it on again:
npm config set strict-ssl true
Download Node.js archive
Download latest version of Node.js installable archive file from Node.js Downloads.
After successfully installing NodeJS, we can start installing React upon it using npm. You can install ReactJS in two ways.
- Using webpack and babel.
- Using the create-react-app command.
But I am telling you about Using the create-react-app command:
- Instead of using webpack and babel you can install ReactJS more simply by installing create-react-app.
Browse through the desktop and install the Create React App using command prompt as shown below:
Step 1: go to your specific directory and run below commands inside the folder like as below:
Step 2: d:\reactproject\>npx create-react-app my-app
Step 3: cd my-app
Step 4: npm start
Check if your date is right.
If it's not run this and try again:
sudo date --set="2015-09-30 10:05:59.990"

I am creating reactjs application using create-react-app .but when I am trying npm start .It it showing this error

I have tried to update webpack but then it is showing the same error with another required dependency version.
You have installed webpack globally. Try
npm uninstall - g webpack.
And then delete the node modules folder of your application. Delete your package.lock file.
Do an npm install

Error : Installation of blur-admin with angularjs

I want to install blur admin theme with angular js
I have follow steps to install blur admin theme from below site
https://akveo.github.io/blur-admin/articles/002-installation-guidelines/
I got the error as below ,
I find for solution for that and found below commands to run
npm update
npm install gulp-sass
then again run
gulp serve
but still same error I got
In my system git is installed and my nodejs version is 8.9.4
Please help me to resolve this issue.
Seems like you have not installed gulp-sass module.
Install it by running npm following command
npm install gulp-sass#latest --save-dev
Make sure you have deleted node_modules folder before install module.

Resources