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

yarn install error #2125

Closed
shekang opened this issue May 20, 2020 · 0 comments
Closed

yarn install error #2125

shekang opened this issue May 20, 2020 · 0 comments

Comments

@shekang
Copy link

shekang commented May 20, 2020

Description

yarn install v1.22.4
$ node .electron-vue/preinstall.js
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@2.1.2: The platform "win32" is incompatible with this module.
info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.11: The platform "win32" is incompatible with this module.
info "fsevents@1.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
error D:\playground\marktext-develop\node_modules\keyboard-layout: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: D:\playground\marktext-develop\node_modules\keyboard-layout
Output:
D:\playground\marktext-develop\node_modules\keyboard-layout>if not defined npm_config_node_gyp (node "D:\software\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "node C:\Users\xhy004\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
internal/modules/cjs/loader.js:797
    throw err;
    ^

Error: Cannot find module 'D:\playground\marktext-develop\node_modules\keyboard-layout\node C:\Users\xhy004\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)
    at Function.Module._load (internal/modules/cjs/loader.js:687:27)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
    at internal/main/run_main_module.js:17:11 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Steps to reproduce

  1. run yarn install

Versions

  • Mark Text: 0.16.1
  • Operating system: windows 10
@shekang shekang closed this as completed May 20, 2020
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

1 participant