cli icon indicating copy to clipboard operation
cli copied to clipboard

[BUG] npm install causes : Cannot read properties of null (reading 'explain')

Open tamsler opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

This issue exists in the latest npm version

  • [X] I am using the latest npm

Current Behavior

npm install causes following error:

npm install
npm ERR! Cannot read properties of null (reading 'explain')

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/tpa/.npm/_logs/2022-07-27T20_38_52_724Z-debug-0.log

Expected Behavior

Install packages defined in package.json

Steps To Reproduce

Download repo cd into repo npm install

Environment

node bin location = /usr/local/bin/node ; node version = v16.16.0 ; npm local prefix = /Users/tpa/src/cb-app-www ; npm version = 8.15.0

tamsler avatar Jul 27 '22 20:07 tamsler

We're going to need more steps to reproduce. What are the contents of your package.json?

fritzy avatar Jul 27 '22 20:07 fritzy

Here are the dependencies:

"dependencies": {
    "@mdi/font": "6.9.96",
    "jwt-decode": "^3.1.2",
    "pinia": "2.0.17",
    "roboto-fontface": "*",
    "vue": "3.2.37",
    "vue-router": "4.1.3",
    "vuetify": "^3.0.0-beta.5",
    "webfontloader": "1.6.28"
  },
  "devDependencies": {
    "@rushstack/eslint-patch": "^1.1.4",
    "@types/jsdom": "^16.2.14",
    "@types/node": "^16.11.41",
    "@types/webfontloader": "^1.0.0",
    "@vitejs/plugin-vue": "^2.3.3",
    "@vue/eslint-config-prettier": "^7.0.0",
    "@vue/eslint-config-typescript": "^11.0.0",
    "@vue/test-utils": "^2.0.2",
    "@vue/tsconfig": "^0.1.3",
    "cypress": "^10.3.0",
    "eslint": "^8.19.0",
    "eslint-plugin-cypress": "^2.12.1",
    "eslint-plugin-vue": "^9.2.0",
    "jsdom": "^20.0.0",
    "npm-run-all": "^4.1.5",
    "prettier": "^2.7.1",
    "start-server-and-test": "^1.14.0",
    "typescript": "~4.7.4",
    "vite": "^2.9.14",
    "vite-plugin-vuetify": "^1.0.0-alpha.12",
    "vitest": "^0.18.1",
    "vue-cli-plugin-vuetify": "~2.5.1",
    "vue-tsc": "^0.38.5"
  }

tamsler avatar Jul 27 '22 20:07 tamsler

I'll make a quick PR to fix this edge case, but once fixed ...

❯ npm i                                     
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: vuetify@"^3.0.0-beta.5" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer vuetify@"^3.0.0-beta.4" 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 /Users/fritzy/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/fritzy/.npm/_logs/2022-07-27T21_46_00_351Z-debug-0.log

fritzy avatar Jul 27 '22 21:07 fritzy