Many warnings on every command in yarn on Windows 10.
Everytime I launch some yarn command, eg: yarn global list, yarn global add, yarn add, yarn upgrade (also interactive) I see this in my console:
[1/4] Resolving packages...
[2/4] Fetching packages...
warning Pattern ["colors@latest"] is trying to unpack in the same destination "C:\\Users\\John\\AppData\\Local\\Yarn\\cache\\v1\\npm-colors-1.1.2-168a4701756b6a7f51a12ce0c97bfa28c084ed63" as pattern ["colors@^1.1.2","[email protected]"]. This could result in a non deterministic behavior, skipping.
warning Pattern ["object-assign@latest"] is trying to unpack in the same destination "C:\\Users\\John\\AppData\\Local\\Yarn\\cache\\v1\\npm-object-assign-4.1.1-2109adc7965887cfc05cbbd442cac8bfbb360863" as pattern ["object-assign@^4.1.0","[email protected]","object-assign@^4.0.1","object-assign@^4"]. This could result in a non deterministic behavior, skipping.
warning Pattern ["send@latest"] is trying to unpack in the same destination "C:\\Users\\John\\AppData\\Local\\Yarn\\cache\\v1\\npm-send-0.15.4-985faa3e284b0273c793364a35c6737bd93905b9" as pattern ["[email protected]"]. This could result in a non deterministic behavior, skipping.
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
My question is WHY?!
Windows 10 x64. NodeJS 8.6.0. NPM 5.4.2. NPX 9.6.0.
UPDATE: Yarn 1.1.0.
I installed yarn with npm i -g yarn.
Please provide all the information requested in the issue template: The yarn version you are using, your package.json file, your yarn.lock file if you have and the Node version you are using.
I have the same pattern warning messages, and these warning messages output increases after I yarn global add another package. yarn global list outputs these warning messages too.
macOS High Sierra node: v8.9.0 yarn: 1.2.1
package.json:
{
"dependencies": {
"@angular/cli": "^1.4.9",
"babel-cli": "^6.26.0",
"create-react-app": "^1.4.1",
"foundation-cli": "^2.2.5",
"live-server": "^1.2.0",
"purescript": "^0.11.6",
"tern": "^0.21.0",
"tslint": "^5.8.0",
"typescript": "^2.5.3"
}
}
I am getting this as well with 1.2.1
A coworker just encountered the same warning with v1.3.2.
I get this as well on Debian 9 with yarn 1.3.2 and node 8.9.4
When I removed live-server the warning goes.
@gopumon I don't have live-server in my package.json, so this does not generically seem to be the problem.
Also seeing this error:
warning Pattern ["colors@latest"] is trying to...
warning Pattern ["object-assign@latest"] is trying to...
Yarn: 1.16.0 Node: 11.9.0
package.json
Contents:
{
"name": "@terminus/ui",
"version": "0.0.0-PLACEHOLDER",
"description": "Terminus UI Library",
"license": "MIT",
"author": "@terminus",
"homepage": "https://github.com/GetTerminus/terminus-ui",
"repository": {
"type": "git",
"url": "https://github.com/GetTerminus/terminus-ui.git"
},
"bugs": {
"url": "https://github.com/GetTerminus/terminus-ui/issues"
},
"scripts": {
"//////// Section: Demo App": "==============================",
"ng": "ng",
"start:app": "yarn run build:styles && yarn run link && ng serve",
"start:app:aot": "yarn run link && ng serve --aot",
"build:app": "cpr dist/terminus-ui demo/@terminus/ui --overwrite && ng build --app packages --prod && rimraf demo/@terminus",
"build:app:ci": "ng build --prod --aot --build-optimizer --progress false",
"pretest:app": "yarn run build && cpr dist/terminus-ui/helpers.scss node_modules/@terminus/ui/helpers.scss --overwrite && cpr dist/terminus-ui/terminus-ui.css node_modules/@terminus/ui/terminus-ui.css --overwrite",
"test:app": "ng test",
"lint:app": "yarn run lint:app:ts && yarn run lint:app:scss",
"lint:app:ts": "npx tslint --project ./demo/tsconfig.app.json --config ./demo/tslint.json --format stylish",
"lint:app:scss": "npx stylelint 'demo/**/*.scss' --fix",
"e2e:app": "ng e2e",
"link": "cd dist/terminus-ui && yarn link && cd ../../ && yarn link @terminus/ui",
"unlink": "yarn unlink @terminus/ui && cd dist/terminus-ui && yarn unlink",
"////////// Section: Library:Build": "==============================",
"build": "yarn run build:ts && yarn run build:styles && yarn run build:files",
"build:ts": "rimraf dist && ng-packagr -p terminus-ui/package.json",
"build:ts:watch": "yarn run build:styles && ng-packagr -p terminus-ui/package.json --watch",
"build:styles": "npx gulp generate:styles --gulpfile tooling/gulpfile.js",
"build:files": "cpr README.md dist/terminus-ui/ && cpr LICENSE dist/terminus-ui/",
"build:explore": "source-map-explorer dist/terminus-ui/bundles/terminus-ui.umd.min.js dist/terminus-ui/bundles/terminus-ui.umd.min.js.map",
"////////// Section: Library:Testing": "==============================",
"test:NOTE": "jest --watch: currently hangs when determining which tests to run. For now we simply run all",
"test": "jest --watch",
"test:ci": "jest --runInBand --coverage",
"test:ci:local": "jest --coverage",
"test:debug": "jest --debug --runInBand",
"////////// Section: Documentation": "==============================",
"predocs": "yarn run docs:toc",
"docs": "yarn run docs:ts",
"docs:ts": "npx compodoc -p terminus-ui/tsconfig.compodoc.json -d docs --hideGenerator --toggleMenuItems all --theme material",
"docs:toc": "find . -path ./node_modules -prune -o -path ./dist -prune -o -path ./demo -prune -o -path ./.github -prune -o -path ./.git -prune -o -path ./CHANGELOG.md -prune -o -path ./CODE_OF_CONDUCT.md -prune -o -name '*.md' -print | xargs npx doctoc --title '**Table of Contents**' --maxlevel 4",
"//=> Section: Yarn Management": "==============================",
"fresh-yarn-install": "rm -rf node_modules && yarn install",
"////////// Section: Linting": "==============================",
"lint:tslint": "npx tslint --project ./terminus-ui/tsconfig.json --config ./tslint.json --format stylish",
"lint:tslint:fix": "npx tslint --project ./terminus-ui/tsconfig.json --config ./tslint.json --format stylish --fix",
"lint:tslint:spec": "npx tslint --project ./terminus-ui/tsconfig.spec.json --config ./tslint.spec.json --format stylish",
"lint:tslint:spec:fix": "npx tslint --project ./terminus-ui/tsconfig.spec.json --config ./tslint.spec.json --format stylish --fix",
"lint:tslint:ci": "npx tslint --project ./terminus-ui/tsconfig.json --config ./tslint.ci.json --format stylish",
"lint:eslint": "npx eslint \"terminus-ui/**/*.{js,ts}\" --ignore-pattern \"terminus-ui/**/*.d.ts\" --config .eslintrc.js",
"lint:eslint:fix": "npx eslint \"terminus-ui/**/*.{js,ts}\" --ignore-pattern \"terminus-ui/**/*.d.ts\" --config .eslintrc.js --fix",
"lint:eslint:ci": "npx eslint \"terminus-ui/**/*.{js,ts}\" --ignore-pattern \"terminus-ui/**/*.d.ts\" --config .eslintrc.ci.js",
"lint:scss": "npx stylelint 'terminus-ui/**/!(*.spec).scss'",
"lint:scss:fix": "npx stylelint 'terminus-ui/**/!(*.spec).scss' --fix",
"lint": "yarn run lint:tslint:fix && yarn run lint:eslint:fix && yarn run lint:scss:fix",
"lint:ci": "yarn run lint:tslint:ci && yarn run lint:eslint:ci && yarn run lint:scss",
"codecov:upload": "npx codecov -f coverage/*.json",
"////////// Section: Release": "==============================",
"semantic-release": "semantic-release",
"check:next-release": "npx semantic-release --no-ci --dry-run",
"////////// Section: Tooling": "==============================",
"lint-staged": "lint-staged",
"validate:circleci": "circleci config validate -c .circleci/config.yml",
"cm": "npx git-cz",
"todo": "npx notes -x node_modules/ -x out-tsc/ -x dist/ -x coverage/ -x demo/ -x integration/ -x docs/ -x .DS_Store -x README.md -x terminus-ui/helpers.scss",
"contributors:add": "npx all-contributors add",
"contributors:generate": "npx all-contributors generate",
"contributors:check": "npx all-contributors check"
},
"husky": {
"hooks": {
"commit-msg": "validate-commit-msg",
"pre-commit": "lint-staged"
}
},
"config": {
"loglevel": "warn",
"commitizen": {
"path": "./node_modules/cz-customizable"
},
"cz-customizable": {
"config": "./tooling/cz-config.js"
}
},
"lint-staged": {
"terminus-ui/**/*.spec.ts": [
"yarn run lint:tslint:spec:fix",
"git add"
],
"terminus-ui/**/(!testing)/!(*.spec|*.mock).ts": [
"yarn run lint:tslint:fix",
"yarn run lint:eslint:fix",
"git add"
],
"terminus-ui/**/!(*.spec).scss": [
"yarn run lint:scss",
"git add"
]
},
"publishConfig": {
"tag": "next"
},
"release": {
"branch": "release",
"plugins": [
[
"@semantic-release/release-notes-generator",
{
"parserOpts": {
"noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES",
"BREAKING"
]
},
"writerOpts": {
"commitsSort": [
"subject",
"scope"
]
}
}
],
"@semantic-release/git"
],
"verifyConditions": [
"condition-circle",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/github"
],
"prepare": [
{
"path": "@semantic-release/changelog",
"changelogFile": "CHANGELOG.md"
},
{
"path": "@semantic-release/git",
"message": "📚 Add ${nextRelease.version} release notes [skip ci]"
}
],
"publish": [
{
"path": "@semantic-release/npm",
"npmPublish": true,
"pkgRoot": "dist/terminus-ui"
},
{
"path": "@semantic-release/github",
"assets": [
"CHANGELOG.md"
],
"npmPublish": false
}
]
},
"engines": {
"node": ">= 8.0.0",
"npm": ">= 5.0.0",
"yarn": ">= 1.0.0"
},
"dependencies": {
"@amcharts/amcharts4": "^4.0.24",
"@amcharts/amcharts4-geodata": "^4.0.29",
"@angular/animations": "^7.2.2",
"@angular/cdk": "^7.3.0",
"@angular/common": "^7.2.2",
"@angular/core": "^7.2.2",
"@angular/flex-layout": "7.0.0-beta.22",
"@angular/forms": "^7.2.2",
"@angular/http": "^7.2.2",
"@angular/material": "^7.3.0",
"@angular/platform-browser": "^7.2.2",
"@angular/platform-browser-dynamic": "^7.2.2",
"@angular/router": "^7.2.2",
"@terminus/ngx-tools": "^6.6.1",
"@terminus/ui": "latest",
"date-fns": "2.0.0-alpha.26",
"ngx-perfect-scrollbar": "^7.2.0",
"text-mask-addons": "^3.8.0",
"text-mask-core": "^5.1.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.12.3",
"@angular/cli": "^7.2.3",
"@angular/compiler": "^7.2.2",
"@angular/compiler-cli": "^7.2.2",
"@compodoc/compodoc": "^1.1.7",
"@ngrx/effects": "^7.1.0",
"@ngrx/store": "^7.1.0",
"@semantic-release/changelog": "^3.0.2",
"@semantic-release/exec": "^3.3.2",
"@semantic-release/git": "^7.0.8",
"@semantic-release/github": "^5.2.10",
"@semantic-release/npm": "^5.1.4",
"@semantic-release/release-notes-generator": "^7.1.4",
"@terminus/eslint-config-frontend": "^1.0.3",
"@terminus/stylelint-config-frontend": "^1.0.1",
"@terminus/tslint-config-frontend": "^1.0.3",
"@types/jest": "^23.3.13",
"@types/node": "^10.12.19",
"all-contributors-cli": "^5.11.0",
"autoprefixer": "^9.4.7",
"camelcase": "^5.0.0",
"code-notes": "^1.0.4",
"commitizen": "^3.0.5",
"condition-circle": "^2.0.2",
"core-js": "^2.6.3",
"cpr": "^3.0.1",
"cz-customizable": "^6.2.0",
"del": "^3.0.0",
"doctoc": "^1.4.0",
"eslint": "^5.16.0",
"execa": "^1.0.0",
"glob": "^7.1.3",
"global": "^4.3.2",
"gulp": "gulpjs/gulp#4.0",
"gulp-cli": "^2.0.1",
"gulp-concat": "^2.6.1",
"gulp-postcss": "^8.0.0",
"gulp-print": "^5.0.0",
"gulp-remove-empty-lines": "^0.1.0",
"gulp-replace": "^1.0.0",
"gulp-sass": "^4.0.2",
"gulp-sourcemaps": "^2.6.4",
"gulp-strip-json-comments": "^3.0.0",
"hammerjs": "^2.0.8",
"husky": "^1.3.1",
"jasmine-core": "2.99.1",
"jasmine-spec-reporter": "~4.2.0",
"jest": "^24.0.0",
"jest-create-mock-instance": "^1.1.0",
"jest-junit": "^6.2.1",
"jest-preset-angular": "^6.0.2",
"jest-zone-patch": "^0.0.10",
"karma": "2.0.0",
"karma-chrome-launcher": "^2.2.0",
"karma-cli": "^1.0.1",
"karma-coverage": "^1.1.1",
"karma-coverage-istanbul-reporter": "^1.4.2",
"karma-html-reporter": "^0.2.7",
"karma-jasmine": "^1.1.1",
"karma-jasmine-html-reporter": "^0.2.2",
"karma-mocha-reporter": "^2.2.5",
"karma-remap-coverage": "^0.1.5",
"karma-sauce-launcher": "^1.2.0",
"karma-sourcemap-loader": "^0.3.7",
"karma-typescript": "^3.0.13",
"lint-staged": "^8.1.1",
"markdown-link-check": "^3.7.2",
"merge-files": "^0.1.1",
"ng-packagr": "^4.7.0",
"node-sass": "^4.11.0",
"node-sass-import": "^2.0.1",
"remap-istanbul": "^0.13.0",
"require-dir": "^1.2.0",
"rimraf": "^2.6.3",
"rxjs": "^6.3.3",
"sass-lint": "^1.12.1",
"sass-module-importer": "^1.4.0",
"sass-true": "^4.0.0",
"scssfmt": "^1.0.6",
"semantic-release": "^15.13.3",
"source-map-explorer": "^1.6.0",
"stylelint": "^10.0.1",
"stylelint-order": "^2.0.0",
"systemjs": "^0.21.4",
"tsickle": "^0.34.0",
"tslib": "^1.9.3",
"tslint": "^5.16.0",
"typescript": "~3.2.1",
"validate-commit-msg": "^2.14.0",
"weak": "^1.0.1",
"zone.js": "^0.8.29"
}
}
Apparently my yarn.lock is too large to post here. The file can be found here: https://github.com/GetTerminus/terminus-ui/blob/release/yarn.lock
Hello,
This issue happens in every OS. It is not related to Windows.
It happens when Yarn installs a package that uses latest as a version of one of their dependencies (in my case).
For example, many of us here are getting this warning because we use live-server. If we look at live-server's dependencies, we will see:
"dependencies": {
"colors": "latest",
...
}
This is why when we install live-server we get the following warning:
warning Pattern ["colors@latest"] is trying to unpack in the same destination...
as pattern ["colors@^1.3.3","colors@^1.1.2"]. This could result in non-deterministic behavior, skipping.
This is a bug. There is a newer issue that gives some clues about what's happening: #6907
I get the same warning too. I don't know if it's because of live server, but here's the output
warning Pattern ["colors@latest"] is trying to unpack in the same destination "/home/user/.cache/yarn/v6/npm-colors-1.4.0-c50491479d4c1bdaed2c9ced32cf7c7dc2360f78-integrity/node_modules/colors" as pattern ["colors@^1.1.2","colors@^1.1.2","colors@>=0.6.0","colors@^1.1.2"]. This could result in non-deterministic behavior, skipping. warning Pattern ["cors@latest"] is trying to unpack in the same destination "/home/user/.cache/yarn/v6/npm-cors-2.8.5-eac11da51592dd86b9f06f6e7ac293b3df875d29-integrity/node_modules/cors" as pattern ["cors@^2.8.4","cors@^2.8.4"]. This could result in non-deterministic behavior, skipping. warning Pattern ["object-assign@latest"] is trying to unpack in the same destination "/home/user/.cache/yarn/v6/npm-object-assign-4.1.1-2109adc7965887cfc05cbbd442cac8bfbb360863-integrity/node_modules/object-assign" as pattern ["object-assign@^4","object-assign@^4.0.1","object-assign@^4.1.0","object-assign@^4.1.0","object-assign@^4.0.1","object-assign@^4.0.1","object-assign@^4.0.1","object-assign@^4.0.1","object-assign@^4.1.1","object-assign@^4.1.0","object-assign@^4.0.1","object-assign@^4.0.1","object-assign@^4"]. This could result in non-deterministic behavior, skipping. warning Pattern ["send@latest"] is trying to unpack in the same destination "/home/user/.cache/yarn/v6/npm-send-0.17.1-c1d8b059f7900f7466dd4938bdc44e11ddb376c8-integrity/node_modules/send" as pattern ["[email protected]","[email protected]"]. This could result in non-deterministic behavior, skipping. info [email protected]: The platform "linux" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. info [email protected]: The platform "linux" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning "@vue/cli-service-global > @vue/[email protected]" has unmet peer dependency "@babel/core@*".
how can we fix this problem?
Any Solution