testing-library / vue-testing-library

🦎 Simple and complete Vue.js testing utilities that encourage good testing practices.
http://testing-library.com/vue
MIT License
1.08k stars 110 forks source link

Can't install. Error with Chalk? #168

Closed w3bdesign closed 3 years ago

w3bdesign commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

Trying to install the project on a project with the latest version of Nuxt, and I get the following error message:

npm ERR! enoent ENOENT: no such file or directory, rename 'F:\JOBB12\vue-todo\node_modules\@testing-library\dom\node_modules\chalk' -> 'F:\JOBB12\vue-todo\node_modules\@testing-library\dom\node_modules\.chalk.DELETE' npm ERR! enoent This is related to npm not being able to find a file.

To Reproduce Steps to reproduce the behavior:

Clone https://github.com/w3bdesign/vue-todo, try to install Vue-testing-library.

Expected behavior

I expect to be able to install without any issues or errors.

Screenshots

image

Related information:

w3bdesign commented 3 years ago

Here is the content of my package.json:

"name": "nuxt-todo", "version": "1.0.5", "private": true, "scripts": { "dev": "nuxt-ts", "build": "nuxt-ts build", "start": "nuxt-ts start", "generate": "nuxt-ts generate", "lint:js": "eslint --ext .js,.vue --ignore-path .gitignore . --fix", "lint": "npm run lint:js", "test": "jest" }, "dependencies": { "@nuxt/typescript-runtime": "^2.0.0", "core-js": "^3.7.0", "nuxt": "^2.14.7", "uid": "^2.0.0", "vue2-animate": "^2.1.4" }, "devDependencies": { "@nuxt/types": "^2.14.7", "@nuxt/typescript-build": "^2.0.3", "@nuxtjs/eslint-config": "^4.0.0", "@nuxtjs/eslint-config-typescript": "^4.0.0", "@nuxtjs/eslint-module": "^3.0.0", "@nuxtjs/tailwindcss": "^3.2.0", "@vue/test-utils": "^1.1.1", "babel-core": "7.0.0-bridge.0", "babel-eslint": "^10.1.0", "babel-jest": "^26.6.3", "eslint": "^7.12.1", "eslint-config-prettier": "^6.15.0", "eslint-plugin-nuxt": "^1.0.0", "eslint-plugin-prettier": "^3.1.4", "jest": "^26.6.3", "prettier": "^2.1.2", "ts-jest": "^26.4.3", "vue-jest": "^3.0.7"
}

w3bdesign commented 3 years ago

Managed to get it to work now after trying 3 times. Any idea what caused it?