npm ERR! Object.entries is not a function - npm

My project show this error when i try to run npm install for any package:
npm ERR! Object.entries is not a function
someone with same error?

Updating npm to latest version (6.0.1) resolves this issue.
It's been reported here:
https://github.com/npm/npm-audit-report/issues/9

The same error occurred.
There is a possibility of bug of npm 6.0.0.
Downgrading to npm 5.8.0 no longer causes errors.

Related

Facing code EWORKSPACESCONFIG issue while npm install

Below error, I am getting while doing npm install for react-native.
npm ERR! code EWORKSPACESCONFIG
npm ERR! workspaces config expects an Array
Didnt work for me too so I used yarn instead of npm and that worked
The root cause of this error is npm version. I tried many things but none of them worked.
Try to upgrade or downgrade npm version. Will fix this issue.
I erased the workspaces entry and used npm i --force #tailwindcss/typography and it seemed to solve it.

npm install react-bootstrap erroring

My code is importing components from react-bootstrap
import { FormGroup, ControlLabel } from "react-bootstrap";
I am running
npm install react-bootstrap
inorder to install the package when I do I get this error
npm ERR! code E404
npm ERR! 404 Not Found: react-bootstrap-validtion#latest
npm ERR! code ETARGET
npm ERR! notarget No matching version found for react-popper#1.2.1
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
I attempted then to npm install react-popper#1.2.1 but that too errored
How can I fix this
The versions for react-popper are 1.2.0 or 1.3.0.
https://www.npmjs.com/package/react-popper[Version page of react-popper][1]
No version 1.2.1 is available.
There is no react -popper version 1.2.1 which you are trying to install please go through the react-popper versions here
For react bootstrap installation please refer React-Bootstrap
If these do not help you solve your problem please let us know
It is a better practice to install both react-bootstrap and bootstrap itself, If you try to install bootstrap along react-bootstrap using this code you should get out of the errors
npm install bootstrap react-bootstrap

Getting an error while running npm install

I'm getting this kind of error.
C:\Users\Sulagna(mana)\Desktop\Angular Application\quickstart-master>npm install
npm WARN deprecated minimatch#0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! Unexpected end of JSON input while parsing near '...Shrinkwrap":false,"di'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Sulagna(mana)\AppData\Roaming\npm-cache\_logs\2018-08-24T18_43_22_701Z-debug.log
C:\Users\Sulagna(mana)\Desktop\Angular Application\quickstart-master>
Does anyone know how to fix it?
Delete node_modules folder
npm cache clean --force
npm install
It says that the npm package minimatch#0.3.0 has a security vulnerability and therefore asking you to update it to version 3.0.2
You will need to update the minimatch version in your package.json.

unable to downgrade from angular 6 to angular 5

I created my project using angular 6 but due to some reasons i want to rollback to angular 5,I tried following commands but it is showing some errors.
node version- 10.4.1
npm version-6.1.0
npm ERR! code ETARGET
npm ERR! notarget No matching version found for #angular/cli#1.7.
npm ERR! notarget In most cases you or one of your dependencies are
requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\TEKIZMA USER\AppData\Roaming\npm-cache\_logs\2018-06-
27T0
_21_53_446Z-debug.log
Please try to follow this Stack Answer
According to my knowledge first, try to downgrade NPM then angular.
And you might need to read this too.
Try possibly this way
npm install -g #angular/cli#YOUR_DESIRED_VERSION
You do not need to reinstall global version of Angular CLI.
Instead, you can use NPX library like:
npx -p #angular/cli#<version> new <app-name>

Error when using 'create-react-native-app'

I tried to create a new React Native app using the command create-react-native-app in the node.js terminal on my Windows system. I got the following terminal error:
D:\project>create-react-native-app crna
Creating a new React Native app in D:\project\crna.
Installing packages. This might take a couple minutes.
Installing react-native-scripts...
npm WARN deprecated fs-promise#1.0.0: Use mz or fs-extra^3.0 with Promise Suppor
t
npm WARN deprecated #exponent/spawn-async#1.2.8: Please switch to #expo/spawn-as
ync, the new name of this package. It's the same code with our new name.
npm ERR! shasum check failed for C:\Users\ui-admin\AppData\Local\Temp\npm-3204-a
eacedd1\registry.npmjs.org\_40exponent\ngrok\-\ngrok-2.2.7.tgz
npm ERR! Expected: 37fe66f922b1003da2a78c66b7d4d3bc9313e423
npm ERR! Actual: d134060eb730b880da06d5c040ca933f6a75b613
npm ERR! From: https://registry.npmjs.org/#exponent/ngrok/-/ngrok-2.2.7.tgz
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ui-admin\AppData\Roaming\npm-cache\_logs\2017-05-26T09_36_
04_379Z-debug.log
`npm install --save-dev --save-exact react-native-scripts` failed
Anyone met this error or fix it?
I got the same error, though in RubyMine, which provided the response that react-native doesn't work with npm 5 yet. it said you can either revert to npm 4 or feel free to log an issue here: https://github.com/npm/npm/issues/16991
I think you're best bet would be to revert and wait it out!