How do I use WebStorm (in particular for debugging, syntax checking and eslinting of TypeScript, etc.) with a managed Expo project? If I follow the Expo quick start with
expo init myapp
cd myapp
[myapp] expo start
(and selecting managed with tabs) everything works as expected. But as soon as I set up a React Native project in WebStorm using myapp as existing source, I run into all kinds of problems. First off, the process adds all kinds of things I don't think I really need, but that's recoverable. But then things get fatal pretty fast. Now if I try
[myapp] expo start
I'm told that expo is missing (wasn't it just there working fine?) and to install it. If I do that with
[myapp] npm install expo
I get a whole mass of package errors (see below) and then when I try
[myapp] expo start
again I get
watchman warning: Recrawled this watch 1 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/Users/Rax/Documents/Projects/Coding/React/learntest' ; watchman watch-project '/Users/Rax/Documents/Projects/Coding/React/learntest'`
Recrawled this watch 1 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/Users/Rax/Documents/Projects/Coding/React/learntest' ; watchman watch-project '/Users/Rax/Documents/Projects/Coding/React/learntest'`
and then finally crash completely once the app launches in Expo with
Unrecognized event: {"type":"transformer_load_started"}
Unrecognized event: {"type":"transformer_load_done"}
Started Metro Bundler
Error: Problem validating fields in app.json. Learn more: https://docs.expo.dev/workflow/configuration/
• should NOT have additional property 'displayName'.
iOS Bundling failed 10664ms
Unable to resolve module react-native-safe-area-context from /Users/Roy/Documents/Projects/Coding/React/learntest/App.tsx: react-native-safe-area-context could not be found within the project or in these directories:
node_modules
../../../../../node_modules
1 | import { StatusBar } from 'expo-status-bar';
> 2 | import { SafeAreaProvider } from 'react-native-safe-area-context';
| ^
3 |
4 | import useCachedResources from './hooks/useCachedResources';
5 | import useColorScheme from './hooks/useColorScheme';
What's going on here? Why does simply creating a WebStorm project from existing source wreck a functioning Expo project? Is there any way to get WebStorm to work with Expo? Is there some other IDE I should be using for that prupose?
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: #typescript-eslint/eslint-plugin#4.33.0
npm WARN Found: eslint#8.12.0
npm WARN node_modules/eslint
npm WARN peer eslint#">= 4.12.1" from babel-eslint#10.1.0
npm WARN node_modules/babel-eslint
npm WARN babel-eslint#"^10.1.0" from #react-native-community/eslint-config#3.0.1
npm WARN node_modules/#react-native-community/eslint-config
npm WARN 11 more (eslint-plugin-jest, eslint-config-prettier, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer eslint#"^5.0.0 || ^6.0.0 || ^7.0.0" from #typescript-eslint/eslint-plugin#4.33.0
npm WARN node_modules/#typescript-eslint/eslint-plugin
npm WARN #typescript-eslint/eslint-plugin#"^4.22.1" from #react-native-community/eslint-config#3.0.1
npm WARN node_modules/#react-native-community/eslint-config
npm WARN
npm WARN Conflicting peer dependency: eslint#7.32.0
npm WARN node_modules/eslint
npm WARN peer eslint#"^5.0.0 || ^6.0.0 || ^7.0.0" from #typescript-eslint/eslint-plugin#4.33.0
npm WARN node_modules/#typescript-eslint/eslint-plugin
npm WARN #typescript-eslint/eslint-plugin#"^4.22.1" from #react-native-community/eslint-config#3.0.1
npm WARN node_modules/#react-native-community/eslint-config
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: #typescript-eslint/parser#4.33.0
npm WARN Found: eslint#8.12.0
npm WARN node_modules/eslint
npm WARN peer eslint#">= 4.12.1" from babel-eslint#10.1.0
npm WARN node_modules/babel-eslint
npm WARN babel-eslint#"^10.1.0" from #react-native-community/eslint-config#3.0.1
npm WARN node_modules/#react-native-community/eslint-config
npm WARN 11 more (eslint-plugin-jest, eslint-config-prettier, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer eslint#"^5.0.0 || ^6.0.0 || ^7.0.0" from #typescript-eslint/parser#4.33.0
npm WARN node_modules/#typescript-eslint/parser
npm WARN #typescript-eslint/parser#"^4.22.1" from #react-native-community/eslint-config#3.0.1
npm WARN node_modules/#react-native-community/eslint-config
npm WARN 1 more (#typescript-eslint/eslint-plugin)
npm WARN
npm WARN Conflicting peer dependency: eslint#7.32.0
npm WARN node_modules/eslint
npm WARN peer eslint#"^5.0.0 || ^6.0.0 || ^7.0.0" from #typescript-eslint/parser#4.33.0
npm WARN node_modules/#typescript-eslint/parser
npm WARN #typescript-eslint/parser#"^4.22.1" from #react-native-community/eslint-config#3.0.1
npm WARN node_modules/#react-native-community/eslint-config
npm WARN 1 more (#typescript-eslint/eslint-plugin)
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: eslint-plugin-react-native#3.11.0
npm WARN Found: eslint#8.12.0
npm WARN node_modules/eslint
npm WARN peer eslint#">= 4.12.1" from babel-eslint#10.1.0
npm WARN node_modules/babel-eslint
npm WARN babel-eslint#"^10.1.0" from #react-native-community/eslint-config#3.0.1
npm WARN node_modules/#react-native-community/eslint-config
npm WARN 11 more (eslint-plugin-jest, eslint-config-prettier, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer eslint#"^3.17.0 || ^4 || ^5 || ^6 || ^7" from eslint-plugin-react-native#3.11.0
npm WARN node_modules/eslint-plugin-react-native
npm WARN eslint-plugin-react-native#"^3.10.0" from #react-native-community/eslint-config#3.0.1
npm WARN node_modules/#react-native-community/eslint-config
npm WARN
npm WARN Conflicting peer dependency: eslint#7.32.0
npm WARN node_modules/eslint
npm WARN peer eslint#"^3.17.0 || ^4 || ^5 || ^6 || ^7" from eslint-plugin-react-native#3.11.0
npm WARN node_modules/eslint-plugin-react-native
npm WARN eslint-plugin-react-native#"^3.10.0" from #react-native-community/eslint-config#3.0.1
npm WARN node_modules/#react-native-community/eslint-config
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: use-subscription#1.6.0
npm WARN Found: react#17.0.2
npm WARN node_modules/react
npm WARN peer react#"17.0.2" from react-native#0.68.0
npm WARN node_modules/react-native
npm WARN peer react-native#"*" from #react-native-community/cli#7.0.3
npm WARN node_modules/#react-native-community/cli
npm WARN 1 more (the root project)
npm WARN 3 more (react-shallow-renderer, react-test-renderer, the root project)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react#"^18.0.0" from use-subscription#1.6.0
npm WARN node_modules/use-subscription
npm WARN use-subscription#"^1.0.0" from react-native#0.68.0
npm WARN node_modules/react-native
npm WARN
npm WARN Conflicting peer dependency: react#18.0.0
npm WARN node_modules/react
npm WARN peer react#"^18.0.0" from use-subscription#1.6.0
npm WARN node_modules/use-subscription
npm WARN use-subscription#"^1.0.0" from react-native#0.68.0
npm WARN node_modules/react-native
npm WARN deprecated uuid#3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid#3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid#3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated core-js#1.2.7: core-js#<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
added 141 packages, changed 4 packages, and audited 1116 packages in 18s
99 packages are looking for funding
run `npm fund` for details
5 high severity vulnerabilities
To address all issues, run:
npm audit fix
Run `npm audit` for details.
Related
my node version is 10.13.0, i'm using this version because of a specific project dependency and i'm using my office laptop,
I'm also having
+-- gulp#4.0.2
+-- typescript#4.9.5
`-- yo#4.3.1
i want to install "npm i -g #microsoft/generator-sharepoint" but i'm getting error "code EEXIST"
I'm new to this so don't have much knowledge what is this and i'm working on this for 2 days still not able to fix it.
npm WARN deprecated uuid#3.1.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated read-package-tree#5.1.6: The functionality that this package provided is now in #npmcli/arborist
npm WARN deprecated readdir-scoped-modules#1.1.0: This functionality has been moved to #npmcli/fs
npm WARN deprecated svgo#1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated stable#0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated source-map-resolve#0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated source-map-url#0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated querystring#0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated chokidar#2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated fsevents#1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated fsevents#2.1.3: "Please update to latest v2.3 or v2.2"
npm WARN deprecated #npmcli/move-file#1.1.2: This functionality has been moved to #npmcli/fs
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#~2.3.2 (node_modules\#microsoft\generator-sharepoint\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.2.7 (node_modules\#microsoft\generator-sharepoint\node_modules\watchpack-chokidar2\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#~2.1.2 (node_modules\#microsoft\generator-sharepoint\node_modules\#rushstack\typings-generator\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN yeoman-generator#5.6.1 requires a peer of yeoman-environment#^3.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN #rushstack/webpack4-module-minifier-plugin#0.9.31 requires a peer of #types/webpack#* but none is installed. You must install peer dependencies yourself.
npm WARN #rushstack/webpack4-module-minifier-plugin#0.9.31 requires a peer of #types/webpack-sources#* but none is installed. You must install peer dependencies yourself.
npm WARN node-fetch#2.6.7 requires a peer of encoding#^0.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN #rushstack/webpack4-localization-plugin#0.15.25 requires a peer of #types/webpack#^4.39.0 but none is installed. You must install peer dependencies yourself.
npm WARN #rushstack/set-webpack-public-path-plugin#3.3.69 requires a peer of #types/webpack#^4.39.8 but none is installed. You must install peer dependencies yourself.
npm WARN #rushstack/set-webpack-public-path-plugin#3.3.69 requires a peer of webpack#^5.35.1 but none is installed. You must install peer dependencies yourself.
npm WARN #microsoft/loader-load-themed-styles#1.9.174 requires a peer of #types/webpack#^4 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader#8.0.2 requires a peer of node-sass#^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader#8.0.2 requires a peer of fibers#>= 3.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN node-fetch#2.6.9 requires a peer of encoding#^0.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN node-fetch#2.6.7 requires a peer of encoding#^0.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN #rushstack/webpack-plugin-utilities#0.1.36 requires a peer of #types/webpack#^4.39.8 but none is installed. You must install peer dependencies yourself.
npm WARN #rushstack/webpack-plugin-utilities#0.1.36 requires a peer of webpack#^5.35.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws#8.12.0 requires a peer of bufferutil#^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws#8.12.0 requires a peer of utf-8-validate#>=5.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-formats#2.1.1 requires a peer of ajv#^8.0.0 but none is installed. You must install peer dependencies yourself.
npm ERR! path C:\Users\AryanSharma\AppData\Roaming\npm\node_modules\#microsoft\generator-sharepoint\node_modules\.bin\browserslist.cmd
npm ERR! code EEXIST
npm ERR! Refusing to delete C:\Users\AryanSharma\AppData\Roaming\npm\node_modules\#microsoft\generator-sharepoint\node_modules\.bin\browserslist.cmd: is outside C:\Users\AryanSharma\AppData\Roaming\npm\node_modules\#microsoft\generator-sharepoint\node_modules\browserslist and not a link
npm ERR! File exists: C:\Users\AryanSharma\AppData\Roaming\npm\node_modules\#microsoft\generator-sharepoint\node_modules\.bin\browserslist.cmd
npm ERR! Move it away, and try again.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\AryanSharma\AppData\Roaming\npm-cache\_logs\2023-02-02T09_55_50_116Z-debug.log
I want to create a new webpart but so many errors
as this error suggests: npm ERR! Move it away, and try again. Please Check whether you have installed the package in your environment, and then try to remove and reinstall it.
The version of the yeoman template you are trying to install is not compatible with NodeJs v10.13.1. Use the following command instead
npm i -g #microsoft/generator-sharepoint#1.12.1
The full list of SPFx compatibility can be found at https://learn.microsoft.com/en-us/sharepoint/dev/spfx/compatibility
From that list, you can see that SPFx v1.12.1 is the last version that supported NodeJs v10.x
Also, you should remove gulp from the global space and replace it with gulp-cli by running the following commands
npm uninstall - gulp
npm i -g gulp-cli
Having typescript installed is also unneeded, so that can be uninstalled.
Lastly, you can always ignore the WARN messages.
Good luck!
Good luck!Don
If my answer helps solve or resolve your issue, please consider clicking Mark as Best Response & Like. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it a Like.
While installing Jest with npm I received the following warnings. I would like to know in general what they mean:
npm install --save-dev jest
npm WARN deprecated urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated request-promise-native#1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
npm WARN saveError ENOENT: no such file or directory, open '/home/burtrandpaulie/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^2.1.2 (node_modules/jest-haste-map/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open '/home/burtrandpaulie/package.json'
npm WARN burtrandpaulie No description
npm WARN burtrandpaulie No repository field.
npm WARN burtrandpaulie No README data
npm WARN burtrandpaulie No license field.
+ jest#26.6.3
added 520 packages from 355 contributors and audited 521 packages in 61.729s
24 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
All the ones prior to the last 4 are related to dependencies of jest. There are some packages jest uses that have announced they are deprecating, but at this point they are still in wide use (e.g. request) so you can inquire with the jest project what their plan is, but while deprecated the request module will likely be around a while.
The last 4 lines are about your own package.json:
npm WARN burtrandpaulie No description
npm WARN burtrandpaulie No repository field.
npm WARN burtrandpaulie No README data
npm WARN burtrandpaulie No license field.
which just says your package.json doesn't have that info. Nothing crazy or required esp. if you're just starting a project.
D:\freelancing\FlowerAppProject\WEBAPP_10_5>npm install
npm WARN deprecated fsevents#1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
> node#11.15.0 preinstall D:\freelancing\FlowerAppProject\WEBAPP_10_5\node_modules\node
> node installArchSpecificPackage
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.2.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/animations#^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/cdk#^8.2.3 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/common#^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/core#^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/forms#^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/material#^8.2.3 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/compiler-cli#7.2.16 requires a peer of typescript#>=3.1.1 <3.3 but none is installed. You must install peer dependencies yourself.
npm WARN #ngtools/webpack#7.3.10 requires a peer of typescript#>=2.4.0 < 3.3 but none is installed. You must install peer dependencies yourself.
npm WARN #pscoped/ngx-pub-sub#3.0.0 requires a peer of #angular/common#^8.2.11 but none is installed. You must install peer dependencies yourself.
npm WARN #pscoped/ngx-pub-sub#3.0.0 requires a peer of #angular/core#^8.2.11 but none is installed. You must install peer dependencies yourself.
npm WARN angular-image-slider#0.0.9 requires a peer of #angular/animations#^8.2.13 but none is installed. You must install peer dependencies yourself.
npm WARN ng-image-slider#2.5.0 requires a peer of #angular/common#^8.2.2 but none is installed. You must install peer dependencies yourself.
npm WARN ng-image-slider#2.5.0 requires a peer of #angular/core#^8.2.2 but none is installed. You must install peer dependencies yourself.
npm ERR! file bash
npm ERR! path bash
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn bash
npm ERR! node#11.15.0 preinstall: `node installArchSpecificPackage`
npm ERR! spawn bash ENOENT
npm ERR!
npm ERR! Failed at the node#11.15.0 preinstall 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\hunter\AppData\Roaming\npm-cache\_logs\2020-05-15T13_23_06_391Z-debug.log
First - have you run npm install -g angular already?
If so -
Have you tried to manually install the missing dependencies?
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/animations#^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/cdk#^8.2.3 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/common#^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/core#^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/forms#^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/material#^8.2.3 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/compiler-cli#7.2.16 requires a peer of typescript#>=3.1.1 <3.3 but none is installed. You must install peer dependencies yourself.
npm WARN #ngtools/webpack#7.3.10 requires a peer of typescript#>=2.4.0 < 3.3 but none is installed. You must install peer dependencies yourself.
npm WARN #pscoped/ngx-pub-sub#3.0.0 requires a peer of #angular/common#^8.2.11 but none is installed. You must install peer dependencies yourself.
npm WARN #pscoped/ngx-pub-sub#3.0.0 requires a peer of #angular/core#^8.2.11 but none is installed. You must install peer dependencies yourself.
npm WARN angular-image-slider#0.0.9 requires a peer of #angular/animations#^8.2.13 but none is installed. You must install peer dependencies yourself.
npm WARN ng-image-slider#2.5.0 requires a peer of #angular/common#^8.2.2 but none is installed. You must install peer dependencies yourself.
npm WARN ng-image-slider#2.5.0 requires a peer of #angular/core#^8.2.2 but none is installed. You must install peer dependencies yourself.
The package.json file should take care of this in theory, but obviously it is not.
You should go down the list and manually npm install #angular/animations#^8.2.14 etc until all the entries are installed successfully and try again.
For some reason on your machine it's not automatically picking up the dependencies - I assume that you installed angular already or this whole project is coming from some tutorial you're following?
These lines mean that it tries to run bash command but can not find it:
npm ERR! file bash
npm ERR! path bash
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn bash
npm ERR! node#11.15.0 preinstall: `node installArchSpecificPackage`
npm ERR! spawn bash ENOENT
I assume that you are running it under the Windows OS, where bash is absent (if you are not running it under WSL e.g.).
I have installed Latest nodeJS(v.8.9.1) and npm(6.1.0), though im getting below problem
npm WARN saveError ENOENT: no such file or directory, open
'F:\AngularProject\Node\package.json'
npm notice created a lockfile as package-lock.json. You should commit this
file.
npm WARN enoent ENOENT: no such file or directory, open
'F:\AngularProject\Node\package.json'
npm WARN #angular/core#2.4.10 requires a peer of rxjs#^5.0.1 but none is
installed. You must install peer
dependencies yourself.
npm WARN Node No description
npm WARN Node No repository field.
npm WARN Node No README data
npm WARN Node No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.4
(node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for
fsevents#1.2.4: wanted {"os":"darw
in","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ angular-cli#1.0.0-beta.28.3
added 922 packages from 761 contributors and audited 5006 packages in
280.149s
found 14 vulnerabilities (1 low, 9 moderate, 4 high)
run `npm audit fix` to fix them, or `npm audit` for details
I have searched in net,but couldn't sort out.I tried the some possible ways like clear npm cache,installed latest npm,Tried in administrator console. But still unable to find out.
when I run npm install I get the following errors.
npm WARN enoent ENOENT, open '/Users/IBricchi/package.json'
npm WARN generator-steroids#1.0.21 requires a peer of yo#1.8.1 || >=1.8.3 but none was installed.
npm WARN grunt-contrib-clean#1.0.0 requires a peer of grunt#>= 0.4.5 but none was installed.
npm WARN grunt-contrib-coffee#1.0.0 requires a peer of grunt#>= 0.4.5 but none was installed.
npm WARN grunt-contrib-concat#1.0.1 requires a peer of grunt#>=0.4.0 but none was installed.
npm WARN grunt-contrib-sass#1.0.0 requires a peer of grunt#>=0.4.0 but none was installed.
npm WARN grunt-extend-config#0.9.5 requires a peer of grunt#>=0.4.0 but none was installed.
npm WARN IBricchi No description
npm WARN IBricchi No repository field.
npm WARN IBricchi No README data
npm WARN IBricchi No license field.
I've tried looking for answers online, but everything I've tried has done nothing. Any help would be appreciated.
Looks like package.json was not found by npm in /Users/IBricchi/package.json. Probably you are running npm install from your home directory by mistake. You should run npm install from your project root directory.