ReactJS: npm install - reactjs

I'm creating a new project starting with an exsisting project (that works).
I copied all file in the new folder and I have done npm install, but I receive this error:
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/.../node_modules/redux-pouchdb-plus/node_modules/leveldown
gyp ERR! node -v v12.18.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN extract-text-webpack-plugin#3.0.2 requires a peer of webpack#^3.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN modal-react-native-web#0.2.0 requires a peer of react-art#16.x.x but none is installed. You must install peer dependencies yourself.
npm WARN modal-react-native-web#0.2.0 requires a peer of react-native-web#0.9.x but none is installed. You must install peer dependencies yourself.
npm WARN react-modal-resizable-draggable#0.1.4 requires a peer of react#^15.5.4 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-web-modal#1.0.1 requires a peer of react#^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-web-modal#1.0.1 requires a peer of react-dom#^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-web-modal#1.0.1 requires a peer of react-native#^0.x but none is installed. You must install peer dependencies yourself.
npm WARN uglifyjs-webpack-plugin#0.4.6 requires a peer of webpack#^1.9 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-middleware#1.12.2 requires a peer of webpack#^1.0.0 || ^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ts-loader#5.4.5 requires a peer of typescript#* but none is installed. You must install peer dependencies yourself.
npm WARN acorn-jsx#5.3.1 requires a peer of acorn#^6.0.0 || ^7.0.0 || ^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN The package react is included as both a dev and production dependency.
npm WARN The package react-dom is included as both a dev and production dependency.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! leveldown#2.1.1 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the leveldown#2.1.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/.../.npm/_logs/2021-04-09T13_48_34_244Z-debug.log
What I should do?
thank you

Create a project again via cli. Because when you create a project in first time, some build in mechanisms save path inside and if you change the folder name they are lost path.

Related

logs Heroku push rejected, failed to compile Node.js app

-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)
Resolving node version 16.x...
Downloading and installing node 16.16.0...
Using default npm version: 8.11.0
-----> Installing dependencies
Installing node modules
added 120 packages, and audited 121 packages in 8s
15 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
-----> Build
Running heroku-postbuild
> newportfolio#0.1.0 heroku-postbuild
> NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-typical#0.1.3
npm ERR! Found: react#17.0.2
npm ERR! node_modules/react
npm ERR! react#"^17.0.2" from the root project
npm ERR! peer react#">=16.x" from #fortawesome/react-fontawesome#0.1.19
npm ERR! node_modules/#fortawesome/react-fontawesome
npm ERR! #fortawesome/react-fontawesome#"^0.1.14" from the root project
npm ERR! 4 more (#testing-library/react, react-dom, react-scripts, react-toastify)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^15.0.0 || ^16.0.0" from react-typical#0.1.3
npm ERR! node_modules/react-typical
npm ERR! react-typical#"^0.1.3" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react#16.14.0
npm ERR! node_modules/react
npm ERR! peer react#"^15.0.0 || ^16.0.0" from react-typical#0.1.3
npm ERR! node_modules/react-typical
npm ERR! react-typical#"^0.1.3" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /tmp/npmcache.u5EXI/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.u5EXI/_logs/2022-07-10T18_18_44_784Z-debug-0.log
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
Some possible problems:
- Node version not specified in package.json
https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed
The error message is straightforward here:
npm ERR! Found: react#17.0.2
npm ERR! node_modules/react
npm ERR! react#"^17.0.2" from the root project
npm ERR! peer react#">=16.x" from #fortawesome/react-fontawesome#0.1.19
npm ERR! node_modules/#fortawesome/react-fontawesome
npm ERR! #fortawesome/react-fontawesome#"^0.1.14" from the root project
npm ERR! 4 more (#testing-library/react, react-dom, react-scripts, react-toastify)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^15.0.0 || ^16.0.0" from react-typical#0.1.3
npm ERR! node_modules/react-typical
npm ERR! react-typical#"^0.1.3" from the root project
Your package.json requires react#"^17.0.2" but react-typical requires react#"^15.0.0 || ^16.0.0" ; so you have a conflict between the versions of React.
To solve this, try to update the version of your libraries. New versions can add compatibilities with new versions. If not, see if this library is necessary for your project.
Edit
react-typical does not require the last version of React. So, you have to fork this library to use the last version of React or you may simply drop this library. The last commit has been published in 2019, this library is maybe not longer maiained.

React spring Errors while installing

Hi I have this problem where if I want to install react-spring into my react project It just pops up bunch of dependencies errors and warnings and I don't know what to do with it. I tried to check documentation of react-spring but I couldn't find anything. I checked few pages here on stackoverflow and I still did not find anything useful. Can somebody help?
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: react#17.0.2
npm WARN node_modules/react-spring/node_modules/react
npm WARN peer react#">=16.8" from #react-spring/konva#9.0.0
npm WARN node_modules/react-spring/node_modules/#react-spring/konva
npm WARN #react-spring/konva#"^9.0.0" from react-spring#9.0.0
npm WARN node_modules/react-spring
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react#"16.8.x" from react-konva#16.8.6
npm WARN node_modules/react-spring/node_modules/react-konva
npm WARN peer react-konva#">=16.8" from #react-spring/konva#9.0.0
npm WARN node_modules/react-spring/node_modules/#react-spring/konva
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: react#17.0.2
npm WARN node_modules/react-spring/node_modules/react
npm WARN peer react#">=16.8" from #react-spring/konva#9.0.0
npm WARN node_modules/react-spring/node_modules/#react-spring/konva
npm WARN #react-spring/konva#"^9.0.0" from react-spring#9.0.0
npm WARN node_modules/react-spring
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react#"^16.0.0" from react-dom#16.8.6
npm WARN node_modules/react-spring/node_modules/react-dom
npm WARN peer react-dom#"16.8.x" from react-konva#16.8.6
npm WARN node_modules/react-spring/node_modules/react-konva
npm WARN ERESOLVE overriding peer dependency
npm WARN Found: konva#7.2.5
npm WARN node_modules/konva
npm WARN peer konva#">=2.6" from #react-spring/konva#9.0.0
npm WARN node_modules/react-spring/node_modules/#react-spring/konva
npm WARN #react-spring/konva#"^9.0.0" from react-spring#9.0.0
npm WARN node_modules/react-spring
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer konva#"^3.2.3" from react-konva#16.8.6
npm WARN node_modules/react-spring/node_modules/react-konva
npm WARN peer react-konva#">=16.8" from #react-spring/konva#9.0.0
npm WARN node_modules/react-spring/node_modules/#react-spring/konva
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: react-spring#9.0.0
npm WARN Found: react-dom#17.0.2
npm WARN node_modules/react-dom
npm WARN peerOptional react-dom#">=17.0" from #react-three/fiber#6.0.1
npm WARN node_modules/#react-three/fiber
npm WARN peer #react-three/fiber#">=6.0" from #react-spring/three#9.0.0
npm WARN node_modules/#react-spring/three
npm WARN
npm WARN Could not resolve dependency:
npm WARN peerOptional react-dom#">=17.0" from #react-three/fiber#6.0.1
npm WARN node_modules/#react-three/fiber
npm WARN peer #react-three/fiber#">=6.0" from #react-spring/three#9.0.0
npm WARN node_modules/#react-spring/three
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: react#17.0.1
npm ERR! node_modules/react
npm ERR! peer react#"*" from #testing-library/react#11.2.5
npm ERR! node_modules/#testing-library/react
npm ERR! #testing-library/react#"^11.2.5" from the root project
npm ERR! peer react#"17.0.1" from react-dom#17.0.1
npm ERR! node_modules/react-dom
npm ERR! peer react-dom#"*" from #testing-library/react#11.2.5
npm ERR! node_modules/#testing-library/react
npm ERR! #testing-library/react#"^11.2.5" from the root project
npm ERR! peer react-dom#">=16.0.0" from react-visibility-sensor#5.1.1
npm ERR! node_modules/react-visibility-sensor
npm ERR! react-visibility-sensor#"^5.1.1" from the root project
npm ERR! 1 more (the root project)
npm ERR! 4 more (react-scripts, react-visibility-sensor, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^17.0.2" from react-reconciler#0.26.2
npm ERR! node_modules/#react-three/fiber/node_modules/react-reconciler
npm ERR! react-reconciler#"^0.26.2" from #react-three/fiber#6.0.1
npm ERR! node_modules/#react-three/fiber
npm ERR! peer #react-three/fiber#">=6.0" from #react-spring/three#9.0.0
npm ERR! node_modules/#react-spring/three
npm ERR! #react-spring/three#"^9.0.0" from react-spring#9.0.0
npm ERR! node_modules/react-spring
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\...\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
The issue is with npm7 requiring peer deps to be installed. This is a feature of npm7, not a bug. react-spring is the global package for the library and therefore contains all our targets. Unless you really are doing an app that requires zDog, konva etc. I would install the specific target you're after.
i.e npm install #react-spring/web the /* can be replaced with any target we support, for more information please see the docs
Had the same problem, this suggestion fixed the installation error.
Still didn't try to work with it though.
Basically, we should add
"peerDependencies": {
"react-spring": "^8.x"
}
to the package.json file
Got the similar kind of problem when added "#twilio/video-room-monitor": "^1.0.1" dependency and resolved by adding "react-spring" in dependencies, reference link
"dependencies": {
"react-spring": "^9.6.1"
}
I had the same problem using React 17.0.2 but success with run npm install -g react-spring and then go without errors but still a lot of warnings

How to install node sass?

I have
node - 14.15.4
and
npm - 6.14.10
I am learning React and I want to use reactstrap. But it shows me this error Error: Node Sass version 5.0.0 is incompatible with ^4.0.0. . So I try this:
npm install --save node-sass#4
And now I have this error:
npm WARN bootstrap#4.5.3 requires a peer of jquery#1.9.1 - 3 but none is installed.
You must install peer dependencies yourself.
npm WARN create-react-context#0.3.0 requires a peer of react#^0.14.0 || ^15.0.0 || ^16.0.0 but none is installed.
You must install peer dependencies yourself.
npm WARN react-popper#1.3.7 requires a peer of react#0.14.x || ^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN tsutils#3.19.0 requires a peer of typescript#>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
npm ERR! code EPERM
npm ERR! syscall unlink
npm ERR! path ..\ReactApp\first_app\my-app\node_modules\.node-sass.DELETE\vendor\win32-x64-83\binding.node
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, unlink '..\ReactApp\first_app\my-app\node_modules\.node-sass.DELETE\vendor\win32-x64-83\binding.node'
npm ERR! [OperationalError: EPERM: operation not permitted, unlink '..\ReactApp\first_app\my-app\node_modules\.node-sass.DELETE\vendor\win32-x64-83\binding.node'] {
npm ERR! cause: [Error: EPERM: operation not permitted, unlink '..\ReactApp\first_app\my-app\node_modules\.node-sass.DELETE\vendor\win32-x64-83\binding.node'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: '..\\PROJECTS\\ReactApp\\first_app\\my-app\\node_modules\\.node-sass.DELETE\\vendor\\win32-x64-83\\binding.node'
npm ERR! },
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: '..\PROJECTS\\ReactApp\\first_app\\my-app\\node_modules\\.node-sass.DELETE\\vendor\\win32-x64-83\\binding.node',
npm ERR! parent: 'my-app'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! ..\AppData\Roaming\npm-cache\_logs\2021-01-12T15_27_11_966Z-debug.log
PS ..\PROJECTS\ReactApp\first_app\my-app>
try to install "npm install node-sass#4.14.0"
To install the working node-sass version, you can use
npm uninstall node-sass
npm install node-sass#4.14.0
you can choose your version number based on the following table, based on ther appropriate node version you have installed
This has solved my problem

How to fix this error when trying to start microsoft/vscode-react-sample

I´m new to React and going through this GitHub microsoft/vscode-react-sample
I downloaded the zip from GitHub and open it in Visual Studio code.
I get this error when I start front end.
When I try to install it like this:
npm install node-sass
I get a massive error like this:
L:\NetProject\vscode-react-sample-master>npm install node-sass
> node-sass#3.13.1 install L:\NetProject\vscode-react-sample-master\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-64_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-64_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
> node-sass#3.13.1 postinstall L:\NetProject\vscode-react-sample-master\node_modules\node-sass
> node scripts/build.js
Building: C:\Program Files\nodejs\node.exe L:\NetProject\vscode-react-sample-master\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp verb `which` failed stack:
gyp verb `which` failed 'Error: not found: python2\n at getNotFoundError (L:\\NetProject\\vscode-react-sample-master\\node_modules\\which\\which.js:13:12)\n at F (L:\\NetProject\\vscode-react-sample-master\\node_modules\\which\\which.js:68:19)\n at E (L:\\NetProject\\vscode-react-sample-master\\node_modules\\which\\which.js:80:29)\n at L:\\NetProject\\vscode-react-sample-master\\node_modules\\which\\which.js:89:16\n at L:\\NetProject\\vscode-react-sample-master\\node_modules\\isexe\\index.js:42:5\n at L:\\NetProject\\vscode-react-sample-master\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:154:21)',
Projekt i lösningen genereras ett åt gången. Lägg till växeln /m om du vill generera flera projekt samtidigt.
Genereringen startade 2019-06-30 17:13:45.
Projektet L:\NetProject\vscode-react-sample-master\node_modules\node-sass\build\binding.sln på nod 1 (standardmål).
ValidateSolutionConfiguration:
Genererar lösningskonfigurationen Release|x64.
MSBUILD : error MSB3428: Det gick inte att läsa in Visual C++-komponenten VCBuild.exe. Du åtgärdar detta genom att installera .NET Framework 2.0
SDK, installera Microsoft Visual Studio 2005 eller genom att lägga till sökvägen till komponenten i systemsökvägen om den är installerad på en
annan plats. [L:\NetProject\vscode-react-sample-master\node_modules\node-sass\build\binding.sln]
Projektgenereringen av L:\NetProject\vscode-react-sample-master\node_modules\node-sass\build\binding.sln (standardmål) misslyckades.
Genereringen misslyckades.
L:\NetProject\vscode-react-sample-master\node_modules\node-sass\build\binding.sln (standardmål) (1) ->
(_src_\libsass mål) ->
MSBUILD : error MSB3428: Det gick inte att läsa in Visual C++-komponenten VCBuild.exe. Du åtgärdar detta genom att installera .NET Framework 2
.0 SDK, installera Microsoft Visual Studio 2005 eller genom att lägga till sökvägen till komponenten i systemsökvägen om den är installerad på e
n annan plats. [L:\NetProject\vscode-react-sample-master\node_modules\node-sass\build\binding.sln]
0 varningar
1 fel
Förfluten tid: 00:00:00.75
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (L:\NetProject\vscode-react-sample-master\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "L:\\NetProject\\vscode-react-sample-master\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd L:\NetProject\vscode-react-sample-master\node_modules\node-sass
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN material-ui#0.15.4 requires a peer of react#^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN material-ui#0.15.4 requires a peer of react-dom#^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN material-ui#0.15.4 requires a peer of react-tap-event-plugin#^1.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-addons-transition-group#15.6.2 requires a peer of react#^15.4.2 but none is installed. You must install peer dependencies yourself.
npm WARN react-transition-group#1.2.1 requires a peer of react#^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-transition-group#1.2.1 requires a peer of react-dom#^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-todo#1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#3.13.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#3.13.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Roaming\npm-cache\_logs\2019-06-30T15_13_48_387Z-debug.log
L:\NetProject\vscode-react-sample-master>
Any ide how to fix this error?

I am installing "material-ui-icons" using command npm i -S material-ui-icons but getting error as follow

npm WARN material-ui-search-bar#0.4.1 requires a peer of material-ui#<1.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN material-ui-search-bar#0.4.1 requires a peer of react#^15.5.4 but none is installed. You must install peer dependencies yourself.
npm WARN material-ui-icons#1.0.0-beta.17 requires a peer of material-ui#^1.0.0-beta.16 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.1.2 (node_modules/react-scripts/node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EACCES: permission denied, rename '/home/alokkumar/my-app/node_modules/.staging/fsevents-d3f3daa6/node_modules/ajv' -> '/home/alokkumar/my-app/node_modules/.staging/ajv-2efe4df7' .
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.1.3 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EACCES: permission denied, rename '/home/alokkumar/my-app/node_modules/.staging/fsevents-9912eb8e/node_modules/ajv' -> '/home/alokkumar/my-app/node_modules/.staging/ajv-4e89f7bf'
npm ERR! path /home/alokkumar/my-app/node_modules/change-emitter
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/home/alokkumar/my-app/node_modules/change-emitter' -> '/home/alokkumar/my-app/node_modules/.change-emitter.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /home/alokkumar/.npm/_logs/2018-01-05T17_27_55_766Z-debug.log
The error is self explanatory if read carefully.
'...requires a peer of material-ui#<1.0.0 but none is installed. You must install peer dependencies yourself.'
Use this command first: npm i -S material-ui

Resources