Do you want to request a feature or report a bug?
bug
What is the current behavior?
Running large install after updating to 0.17.0, yarn erroring out at random times in the build running chmod on .bin files. This works on 0.16.1
1st run
[3/4] ๐ Linking dependencies...
error An unexpected error occurred: "ENOENT: no such file or directory, chmod 'PATH/project/node_modules/.bin/esparse'".
2nd run
[3/4] ๐ Linking dependencies...
error An unexpected error occurred: "ENOENT: no such file or directory, chmod 'PATH/project/node_modules/.bin/rimraf'".
3rd run
[3/4] ๐ Linking dependencies...
error An unexpected error occurred: "ENOENT: no such file or directory, chmod 'PATH/project/node_modules/.bin/rimraf'".
If the current behavior is a bug, please provide the steps to reproduce.
Just running yarn on large project after cleaning out all the node_modules.
What is the expected behavior?
Not erroring out
Please mention your node.js, yarn and operating system version.
v6.3.1
0.17.0
El Capitan
seeing the same issue on v0.17, was previously working on v0.16.1. Can post my error log if it helps. thanks!
Same issue in Windows 10 using bash console. Also working ok in v0.16.1.
same issue
Please mention your node.js, yarn and operating system version.
v4.6.0
0.17.0
ubuntu 16.04 LTS
Same Issue
node: 7.1.0
yarn: 0.17.0
windows 10
working fine with 0.16.1
Same Issue
node: 6.9.1
yarn: 0.17.0
windows 10
Same Issue
node: 6.7.0
yarn: 0.17.0
Lubuntu 15.10 (Virtual Box guest, inside Windows 10 host)
Same errore here:
node: 6.7.0
yarn: 0.17.0
windows 10
We have chmod used only in one place in https://github.com/yarnpkg/yarn/blob/master/src/package-linker.js#L31, this did not change since 0.16.1
We have also noticed the same issue with 0.17.0 reporting error An unexpected error occurred: "ENOENT: no such file or directory, chmod '/node_modules/.bin/semver'". with node version v5.3.0.
I can't reproduce this.
Could anyone show a package.json where it happens?
Hi @bestander ,
You can use this steps to reproduce the bug:
npm install -g [email protected]
git clone https://github.com/yarnpkg/yarn.git yarn-test
cd yarn-test
yarn install
yarn install v0.17.0
[1/4] Resolving packages...
[2/4] Fetching packages...
warning [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...
error An unexpected error occurred: "ENOENT: no such file or directory, chmod 'C:\\Work\\repos\\yarn-test\\node_modules\\.bin\\mkdirp'".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Work\\repos\\yarn-test\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
node: v6.9.1
OS: Windows 10 / bash
Could be related to #1863?
@dbashford yeah, that could
@pmoleri, I am on Mac and don't get an error like you but I get an unfinished install with a quick flash of error:
bestander-mbp:yarn-test bestander$ ~/work/yarn/artifacts/dist/bin/yarn
yarn install v0.18.0-0
[1/4] ๐ Resolving packages...
[2/4] ๐ Fetching packages...
[3/4] ๐ Linking dependencies...
[4/4] ๐ Building fresh packages...
[1/2] โ spawn-sync
[2/2] โ fsevents
[-/2] โ waiting...
โจ Done in 30.35s.
I am going to revert the change in #1210.
Can anyone check if applying this https://github.com/yarnpkg/yarn/pull/1867 fixes the problem?
It works.
I tried this:
cd yarn
git checkout v0.17.0
git checkout -b test-fix
npm run build
npm link
yarn -V
> 0.17.0
cd ../yarn-test
yarn install
> error An unexpected error occurred: "ENOENT: no such file or directory, chmod 'C:\\repos\\yarn-test\\node_modules\\.bin\\mkdirp'".
cd ../yarn
git pull https://github.com/bestander/yarn.git fix-nested-bins
npm run build
cd ../yarn-test
yarn install
> Done in 34.47s.
Ok, I'll merge it and make a 0.17.1 in a couple of hours
On Tue, 15 Nov 2016 at 20:07, pmoleri [email protected] wrote:
It works.
I tried this:
cd yarn
git checkout v0.17.0
git checkout -v test-fix
npm run build
npm link
yarn -V0.17.0
cd ../yarn-test
yarn installerror An unexpected error occurred: "ENOENT: no such file or directory, chmod 'C:repos\yarn-testnode_modules.bin\mkdirp'".
cd ../yarn
git pull https://github.com/bestander/yarn.git fix-nested-bins
npm run buildcd ../yarn-test
yarn installDone in 34.47s.
โ
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/yarnpkg/yarn/issues/1823#issuecomment-260752269, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACBdWLBxdphWMslaU7pXqBMQrqypqM9Iks5q-hDogaJpZM4KxuOp
.
Verified, working fine in v0.17.2
today same error with:
Yarn version:
0.17.9
Node version:
6.8.1
Platform:
win32 x64
Same error with:
I uploaded yarn-error-1823.log in a gist so you can get full log/package.json content...
Running it again, it pass...
Having the same problem with @francisoud and have tried both 0.22.0 and 0.26.1
Some builds pass while most fail.
Same here after I ran yarn cache clean
Most helpful comment
Ok, I'll merge it and make a 0.17.1 in a couple of hours
On Tue, 15 Nov 2016 at 20:07, pmoleri [email protected] wrote: