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.
Related
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.
I need one help. I need to remove the npm warn message while I am trying to do the npm install through dockerfile. I am explaining those warning message below.
while running RUN npm install --no-package-lock getting the following warn message.
npm WARN deprecated #angular/http#7.2.16: Package no longer supported. Use #angular/common instead, see https://angular.io/guide/deprecations#angularhttp
npm WARN deprecated core-js#2.6.12: core-js#<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js#3.
npm WARN deprecated ag-grid#18.1.2: ag-grid is now deprecated - please use #ag-grid-community/all-modules. See www.ag-grid.com/javascript-grid-modules/ for more information.
npm WARN deprecated popper.js#1.16.1: You can find the new Popper v2 at #popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated fsevents#2.1.2: "Please update to latest v2.3 or v2.2"
npm WARN deprecated chokidar#2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated ini#1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
npm WARN deprecated chokidar#2.0.4: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated clipboard-js#0.3.6: Please migrate to https://github.com/lgarron/clipboard-polyfill
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 har-validator#5.1.5: this library is no longer supported
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
and while running RUN npm install then getting the following warnings.
npm WARN deprecated fsevents#2.1.2: "Please update to latest v2.3 or v2.2"
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 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/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
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":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#~2.3.2 (node_modules/watchpack/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":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.2.7 (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":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.2.7 (node_modules/#angular/compiler-cli/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":"linux","arch":"x64"})
npm WARN #auth0/angular-jwt#5.0.2 requires a peer of #angular/common#>=9.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ng-file-drop#5.0.2 requires a peer of #angular/common#^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ng-file-drop#5.0.2 requires a peer of #angular/core#^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ng-file-drop#5.0.2 requires a peer of #angular/platform-browser#^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ng-file-drop#5.0.2 requires a peer of rxjs#^5.5.2 but none is installed. You must install peer dependencies yourself.
So here I need to remove these warnings while running those command through dockerfile. I also tried many options by searching from google but those did not give the right solutions. Can any body help me to resolve this issue ?
after i use npm install sass in cmd
then cmd show these errors
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\me\package.json'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#~2.3.1 (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 enoent ENOENT: no such file or directory, open 'C:\Users\me\package.json'
npm WARN me No description
npm WARN me No repository field.
npm WARN me No README data
npm WARN me No license field.
+ sass#1.32.8
added 15 packages from 18 contributors and audited 16 packages in 3.402s
1 package is looking for funding
run `npm fund` for details
found 0 vulnerabilities
i dont know how to solve these errors
Those are just npm warnings about the package you are installing, in your case you don't have to worry about them unless something is not working. You can ignore them if you like by running:
npm install sass --silent
npm docs
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.
I'm installing the following package on Linux Mint
https://github.com/frida/frida-compile
I try to install it by
~ $ sudo npm install frida-compile
npm WARN saveError ENOENT: no such file or directory, open '/home/david/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/david/package.json'
npm WARN david No description
npm WARN david No repository field.
npm WARN david No README data
npm WARN david No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ frida-compile#5.3.7
updated 1 package in 2.883s
[!] 2 vulnerabilities found [21344 packages audited]
Severity: 2 Low
Run `npm audit` for more detail
And when I run frida-compile on the command line, I get
frida-compile: command not found
Any idea what the issue is here?
I am running Node 8.11.1