Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

current build errors: yarn and encore #500

Open
river-etoa opened this issue Mar 30, 2022 · 2 comments
Open

current build errors: yarn and encore #500

river-etoa opened this issue Mar 30, 2022 · 2 comments

Comments

@river-etoa
Copy link
Contributor

provision file after cd /vagrant && yarn install --frozen-lockfile

    default: yarn install v1.22.18
    default: [1/4] Resolving packages...
    default: [2/4] Fetching packages...
    default: [3/4] Linking dependencies...
    default: warning "laravel-mix > [email protected]" has unmet peer dependency "postcss@^8.2.15".
    default: warning " > [email protected]" has unmet peer dependency "@babel/core@^7.15.8".
    default: warning " > [email protected]" has unmet peer dependency "@babel/plugin-proposal-object-rest-spread@^7.15.6".
    default: warning " > [email protected]" has unmet peer dependency "@babel/plugin-syntax-dynamic-import@^7.8.3".
    default: warning " > [email protected]" has unmet peer dependency "@babel/plugin-transform-runtime@^7.15.8".
    default: warning " > [email protected]" has unmet peer dependency "@babel/preset-env@^7.15.8".
    default: warning " > [email protected]" has unmet peer dependency "postcss@^8.3.11".
    default: warning " > [email protected]" has unmet peer dependency "webpack@^5.60.0".
    default: warning " > [email protected]" has unmet peer dependency "webpack-cli@^4.9.1".
    default: warning "laravel-mix > [email protected]" has unmet peer dependency "postcss@^8.1.0".
    default: warning "laravel-mix > [email protected]" has unmet peer dependency "postcss@^7.0.0 || ^8.0.1".
    default: warning " > [email protected]" has unmet peer dependency "webpack@^5.0.0".
    default: warning Workspaces can only be enabled in private projects.
    default: error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../parser/bin/babel-parser.js' -> '/vagrant/node_modules/@babel/core/node_modules/.bin/parser'".
    default: info If you think this is a bug, please open a bug report with the information provided in "/vagrant/yarn-error.log".
    default: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
    default: yarn run v1.22.18
    default: $ encore production
    default: /bin/sh: 1: encore: not found
    default: error Command failed with exit code 127.
    default: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@river-etoa
Copy link
Contributor Author

tried some fixes in #501
the script works when run locally.
doesn't work thru vagrant, due to the symlink issue
default: error An unexpected error occurred: "EPROTO: protocol error, symlink '../../../parser/bin/babel-parser.js' -> '/vagrant/node_modules/@babel/core/node_modules/.bin/parser'".
the warnings above that seem to not cause immediatly-visible issues.

@coo1ness
Copy link
Contributor

coo1ness commented Mar 19, 2024

The symlink issue seemed to be caused by a windows security policy.
Running on UNIX-based OS didn't throw any error.

Fixing it on code level failed but there's a workaround:

  • Open Start > Windows Administrative Tools > Local Security Policy
  • Go to Local Policies/User Rights Assignment in tree view.
  • Add user name or user groups you belongs to, to entry Create symbolic links
  • Restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants