Open amkhan32 opened 2 years ago
What's the "version" field say in your package.json?
@ljharb This is the package.json:
{
"name": "ssc_react_ux",
"version": "0.1.0",
"private": true,
"homepage": "./",
"dependencies": {
"@carbon/colors": "^10.9.2",
"@carbon/grid": "^10.10.2",
"@carbon/icons": "^10.10.2",
"@carbon/icons-react": "^10.10.2",
"@carbon/layout": "^10.9.2",
"@carbon/type": "^10.10.2",
"carbon-components": "^10.11.2",
"carbon-components-react": "^7.11.3",
"carbon-icons": "^7.0.7",
"i18next": "^21.6.11",
"i18next-browser-languagedetector": "^3.1.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-reveal": "^1.2.2",
"react-router-dom": "^5.1.2"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom --transformIgnorePatterns \"node_modules/(?!(@carbon/icons-react)/)\"",
"eject": "react-scripts eject",
"preinstall": "sudo npx npm-force-resolutions"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^24.9.0",
"browserslist": "^4.16.6",
"css-what": "^5.0.1",
"enzyme-adapter-react-16": "^1.15.2",
"glob-parent": "^6.0.0",
"react-i18next": "^11.15.4",
"jest": "^26.6.3",
"jest-enzyme": "^7.1.2",
"normalize-url": "^6.1.0",
"trim-newlines": "^4.0.2",
"ws": "^7.5.0",
"tar": "^6.1.11",
"npm-force-resolutions": "^0.0.10",
"enzyme": "^3.11.0",
"lodash": "^4.17.21",
"node-sass": "^7.0.1",
"react-scripts": "^5.0.0",
"sass-loader": "^7.3.1"
},
"resolutions": {
"css-what": "^5.0.1",
"ws": "^7.5.0",
"normalize-url": "^6.1.0",
"browserslist": "^4.16.6",
"glob-parent": "^6.0.0",
"trim-newlines": "^4.0.2",
"set-value": "^4.1.0",
"nth-check": "^2.0.1",
"tar": "^6.1.11",
"immer": "^9.0.6",
"ansi-regex": "^5.0.1",
"json-schema": "^0.4.0",
"postcss": "^8.4.6"
}
}
I experiencing the same issue but with a different version:
npm ERR! Invalid Version: 3.011.0
I cannot find any reference to that version neither in package.json nor package-lock.json.
@gt-novelt No workaround as of yet :(
@gt-novelt No workaround as of yet :(
Thanks.
I had to use npm install --no-audit
although it would still install packages. The audit error would break my install script.
@ljharb Any updates?
@amkhan32 i don't maintain npm, so no, no updates - just like everywhere else on github, if there were updates, they'd be posted on the issue, and asking if there's updates is always spam.
I experiencing the same issue but with a different version:
npm ERR! Invalid Version: 3.011.0
I cannot find any reference to that version neither in package.json nor package-lock.json.
Had this same issue and was able to resolve it. If you're using json2 as a dependency try changing the version from "*" to "0.1.0" instead. References to version "*" seemed to be causing issues.
@amkhan32 i don't maintain npm, so no, no updates - just like everywhere else on github, if there were updates, they'd be posted on the issue, and asking if there's updates is always spam.
Sure @ljharb . Sorry for that.
I experiencing the same issue but with a different version:
npm ERR! Invalid Version: 3.011.0
I cannot find any reference to that version neither in package.json nor package-lock.json.
Had this same issue and was able to resolve it. If you're using json2 as a dependency try changing the version from "" to "0.1.0" instead. References to version "" seemed to be causing issues.
I dont have a "*" in my package.json, however I am using "^", but I feel the problem is deeper. Cause even removing the caret does not help me.
This also happens for npm install
too.
Same issue on latest npm and node 20.
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When I run
sudo npm audit fix
it fails like so:Upon looking at the logs, this is what I get:
Expected Behavior
The command should try to fix vulnerabilities and if manual fix is needed. user should be informed in subsequent output.
Steps To Reproduce
Environment