Пряжа не обновляется, почему? - PullRequest
0 голосов
/ 16 июня 2020
error An unexpected error occurred: "EACCES: permission denied, unlink '/home/ubuntu/environment/sample_app/node_modules/.bin/acorn'".

вот как выглядит файл:

#!/usr/bin/env node
'use strict';

require('../dist/bin.js');

У меня раньше не было такой проблемы, что происходит?

ОБНОВЛЕНИЕ вот полный журнал ошибок:

yarn upgrade v1.22.4
[1/4] Resolving packages...
warning @rails/webpacker > node-sass > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @rails/webpacker > node-sass > node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @rails/webpacker > webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @rails/webpacker > webpack > watchpack > watchpack-chokidar2 > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning @rails/webpacker > webpack > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning @rails/webpacker > webpack > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
warning webpack-dev-server > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
[2/4] Fetching packages...
info fsevents@2.1.3: The platform "linux" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "linux" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > webpack-dev-server@3.11.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0".
error An unexpected error occurred: "EACCES: permission denied, unlink '/home/ubuntu/environment/sample_app/node_modules/.bin/acorn'".
info If you think this is a bug, please open a bug report with the information provided in "/home/ubuntu/environment/sample_app/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/upgrade for documentation about this command.

ОБНОВЛЕНИЕ проблема все еще сохраняется, независимо от того, что я делаю или набираю. Кажется, у меня нет «разрешений» что-либо делать, и я не понимаю, почему, учитывая, что я мог сделать это раньше. После ввода команды $ yarn install --check-files я получаю следующее:

yarn install v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@2.1.3: The platform "linux" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "linux" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > webpack-dev-server@3.11.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0".
error An unexpected error occurred: "EACCES: permission denied, unlink '/home/ubuntu/environment/sample_app/node_modules/.bin/acorn'".
info If you think this is a bug, please open a bug report with the information provided in "/home/ubuntu/environment/sample_app/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Глядя на мой файл с желудями, он выглядит так: |

#!/usr/bin/env node
'use strict';

require('../dist/bin.js');

Я не знаю, что делать.

...