Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Can't install yarn on Laravel Homestead
If the current behavior is a bug, please provide the steps to reproduce.
yarn or yarn install
fails with
yarn install v1.9.4
info No lockfile found.
[1/4] Resolving packages...
warning laravel-mix > autoprefixer > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning laravel-mix > css-loader > cssnano > autoprefixer > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning laravel-mix > css-loader > cssnano > postcss-merge-rules > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning laravel-mix > css-loader > cssnano > postcss-merge-rules > caniuse-api > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning laravel-mix > img-loader > imagemin-gifsicle > gifsicle > bin-wrapper > download > gulp-decompress > [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
[2/4] Fetching packages...
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...
error An unexpected error occurred: "EPROTO: protocol error, symlink '../acorn/bin/acorn' -> '/home/vagrant/code/x/node_modules/acorn-dynamic-import/node_modules/.bin/acorn'".
info If you think this is a bug, please open a bug report with the information provided in "/home/vagrant/code/x/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
yarn-error.log
Arguments:
/usr/local/bin/node /usr/bin/yarn
PATH:
/home/vagrant/.composer/vendor/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Yarn version:
1.9.4
Node version:
10.8.0
Platform:
linux x64
Trace:
Error: EPROTO: protocol error, symlink '../acorn/bin/acorn' -> '/home/vagrant/code/x/node_modules/acorn-dynamic-import/node_modules/.bin/acorn'
npm manifest:
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "npm run development -- --watch",
"watch-poll": "npm run watch -- --watch-poll",
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"axios": "^0.18",
"bootstrap": "^4.0.0",
"popper.js": "^1.12",
"cross-env": "^5.1",
"jquery": "^3.2",
"laravel-mix": "^2.0",
"lodash": "^4.17.4",
"vue": "^2.5.7"
}
}
yarn manifest:
No manifest
Lockfile:
No lockfile
What is the expected behavior?
to install yarn
Please mention your node.js, yarn and operating system version.
yarn 1.9.4
nodejs 10.8.0
Windows 10 | Laravel Homestead v7
+1 I also have this issue
+1 same here
me too
+1 (problem on Windows host)
+1 on Windows 10
+1 on WSL - Ubuntu 18.04.1 LTS / Linux 4.4.0-17134-Microsoft
+1 W7
yarn install --no-bin-links
worked for me
@KinAlex in my research i found this solution too, but didn't worked
There's a difference if you run Git Bash for example as an administrator or not. But this can't be the solution.
@KinAlex 's solution worked for me as well.
@KinAlex ' solution worked for me as well, using Windows 7, and using an Admin account there...
The solution provided by @KinAlex worked for me too thanks my friend, am running on windows 10 and am using homestead (VM)/laravel 6.18
Most helpful comment
yarn install --no-bin-links
worked for me