纱线无法升级,为什么?

时间:2020-06-16 18:01:34

标签: ruby-on-rails yarnpkg

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');

我不知道该怎么办。

0 个答案:

没有答案