-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When using Plug and Play on Windows, the postinstall
command of the package fetch-mock fails to run, when certain other packages are listed in dependencies - however runs fine when those other unrelated dependencies are removed (?!).
$ ./yarn-1.13.0-20181114.2216.js
yarn install v1.13.0-20181114.2216
warning package.json: No license field
info No lockfile found.
warning No license field
[1/5] Resolving packages...
[2/5] Fetching packages...
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/5] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "@types/angular@>=1.5".
warning " > [email protected]" has unmet peer dependency "@types/prop-types@>=15".
warning " > [email protected]" has unmet peer dependency "@types/react@>=16".
warning " > [email protected]" has unmet peer dependency "@types/react-dom@>=16".
[5/5] Building fresh packages...
error C:\Users\Ed\src\yarn-pnp-test\.pnp\unplugged\npm-fetch-mock-7.2.5-4682f51b9fa74d790e10a471066cb22f3ff84d48\node_modules\fetch-mock: Command failed.
Exit code: 1
Command: node scripts/support-fetch-mock.js
Arguments:
Directory: C:\Users\Ed\src\yarn-pnp-test\.pnp\unplugged\npm-fetch-mock-7.2.5-4682f51b9fa74d790e10a471066cb22f3ff84d48\node_modules\fetch-mock
Output:
'node' is not recognized as an internal or external command,
operable program or batch file.
If the current behavior is a bug, please provide the steps to reproduce.
mkdir test && cd test
curl https://nightly.yarnpkg.com/yarn-1.13.0-20181114.2216.js -O
- Create a
package.json
with the following contents:
{
"dependencies": {
"@uirouter/angularjs": "0.4.3",
"ajv": "6.5.5",
"angular": "1.7.5",
"angular-clipboard": "1.6.2",
"angular-local-storage": "0.7.1",
"angular1-ui-bootstrap4": "2.4.22",
"auth0-js": "9.8.2",
"bootstrap": "4.1.3",
"d3": "5.7.0",
"font-awesome": "4.7.0",
"history": "4.7.2",
"jquery": "3.3.1",
"jquery.flot": "0.8.3",
"jquery.scrollto": "2.1.2",
"js-cookie": "2.2.0",
"js-yaml": "3.12.0",
"json-e": "2.7.1",
"json-schema-defaults": "0.4.0",
"lodash": "4.17.11",
"metrics-graphics": "2.15.6",
"moment": "2.22.2",
"mousetrap": "1.6.2",
"ng-text-truncate-2": "1.0.1",
"numeral": "2.0.6",
"popper.js": "1.14.5",
"prop-types": "15.6.2",
"query-string": "6.2.0",
"react": "16.6.3",
"react-day-picker": "7.2.4",
"react-dom": "16.6.3",
"react-fontawesome": "1.6.1",
"react-highlight-words": "0.14.0",
"react-hot-loader": "4.3.12",
"react-hotkeys": "1.1.4",
"react-lazylog": "3.1.4",
"react-linkify": "0.2.2",
"react-redux": "5.1.1",
"react-router-dom": "4.3.1",
"react-select": "2.1.1",
"react-split-pane": "0.1.84",
"react-table": "6.8.6",
"react-tabs": "2.3.0",
"react2angular": "4.0.4",
"reactstrap": "6.5.0",
"redux": "4.0.1",
"redux-debounce": "1.0.1",
"redux-thunk": "2.3.0",
"taskcluster-client-web": "8.1.0",
"taskcluster-lib-scopes": "10.0.1",
"webpack": "4.25.1",
"webpack-cli": "3.1.2"
},
"devDependencies": {
"fetch-mock": "7.2.5"
},
"installConfig": {
"pnp": true
}
}
./yarn-1.13.0-20181114.2216.js
What is the expected behavior?
That the yarn install succeed when using plug and play mode.
I've reduced the size of the testcase package.json
a fair amount - however removing any more of the dependencies above resulted in the issue no longer occurring. I'm presuming there's a race condition or other oddity occurring?
Please mention your node.js, yarn and operating system version.
- Windows 10
- Node.js 11.0.0
- Yarn Nightly v1.13.0-20181114.2216
cc @arcanis