Angular 4 project ng build --prod fail - angularjs

My Angular project is #Angular4.0.0.
Angular CLI: 1.7.4
Node: 6.9.5
I'm getting the following errors while trying to run npm install and ng build --prod.
npm install errors
UNMET PEER DEPENDENCY bootstrap#4.0.0-alpha.6
UNMET PEER DEPENDENCY firebase#4.13.1
ng build --prod error
ERROR in scripts.0cfd151de42187092cb0.bundle.js from UglifyJs undefined
Please anyone help me to resolve this problem.?

It has missing peer dependencies, install the peer dependencies yourself. for example:
npm install bootstrap firebase
for your problem that should be: npm install bootstrap#4.0.0 npm install --save firebase#4.13.1

Related

Unable to resolve dependency tree error with legacy peer deps

I made an app in react with BuilderX and this happens when I type npm install in terminal:
And these are the dependencies
I would appreciate your help :)
I tried using npm install --save --legacy-peer-deps but it doesn't work

using typescript and electron

getting error while installing npm ERR! ERESOLVE unable to resolve dependency tree.
used npm install --legacy-peer-deps and npm install --save, but issue not solved
any idea how yo solve it

web reactjs vs .net core Error Module not found: Can't resolve 'assets

enter image description here
I tried:
npm uninstall node-sass
npm install node-sass#4.14.1
npm install -g sass
npm install --save-dev sass
But it doesn't work, please help me!

react-qr-reader installation issue with REACT

I'm trying to install react-qr-reader from https://github.com/JodusNodus/react-qr-reader. I installed REACT and REACT dom just fine but after I added the react-qr-reader package I get this:
root#server [~]# npm install --save react-qr-reader
npm WARN react-qr-reader#2.0.1 requires a peer of react#^15.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN react-qr-reader#2.0.1 requires a peer of react-dom#^15.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN root#1.0.0 No description
npm WARN root#1.0.0 No repository field.
How can I identity the missing peer?
When I try and load the js script I get an "Uncaught SyntaxError: Unexpected identifier" at that line: "import React, { Component } from 'react'". So I'm assuming PEAR is not even properly installed.
First you need to install react and react-dome
npm i react react-dom
Then try install react-qr-reader with sudo command
sudo npm i react-qr-reader --save
npm i react-qr-reader --force
use This its definitely Work For You

Error Installing React

Whenever I do a npm init then npm install react - I get this error
── UNMET PEER DEPENDENCY react#15.3.0
npm WARN baobab-react#0.1.1 requires a peer of react#>=0.13.0 <1.0.0 but none was installed.
npm WARN fixed-data-table#0.4.7 requires a
peer of react#>=0.13.0 <0.15.0 || ^0.14.0-beta3 but none was
installed.
npm WARN react-native#0.30.0 requires a peer of
react#~15.2.0 but none was installed.
npm WARN react-router#0.13.5
requires a peer of react#0.13.x||0.14.x but none was installed. npm
ERR! code 1
This is my node v6.3.0 annd npm 3.10.3 versions.
npm install react --no-optional
Inside your project directory, can you please first run the following commands:-
1) rm -rf node_modules
2) Try installig react again now and other packages which are in your package.json file.

Resources