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

Errors when starting the default Vaadin 14.2 project on a Mac #8411

Closed
Artur- opened this issue May 25, 2020 · 3 comments · Fixed by #8473
Closed

Errors when starting the default Vaadin 14.2 project on a Mac #8411

Artur- opened this issue May 25, 2020 · 3 comments · Fixed by #8473

Comments

@Artur-
Copy link
Member

Artur- commented May 25, 2020

vaadin init tst
cd tst
mvn

internal/modules/cjs/loader.js:1023
throw err;
^

Error: Cannot find module 'nan'
Require stack:

  • .../tst/node_modules/@babel/cli/node_modules/fsevents/[eval]
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1020:15)
    at Function.Module._load (internal/modules/cjs/loader.js:890:27)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at [eval]:1:1
    at Script.runInThisContext (vm.js:131:20)
    at Object.runInThisContext (vm.js:297:38)
    at Object. ([eval]-wrapper:10:26)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at evalScript (internal/process/execution.js:94:25) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '.../tst/node_modules/@babel/cli/node_modules/fsevents/[eval]'
    ]
    }
    gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
    gyp ERR! configure error
    gyp ERR! stack Error: gyp failed with exit code: 1
    gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
    gyp ERR! stack at ChildProcess.emit (events.js:315:20)
    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
    gyp ERR! System Darwin 19.4.0
    gyp ERR! command "/usr/local/Cellar/node/14.1.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    gyp ERR! cwd .../tst/node_modules/@babel/cli/node_modules/fsevents
    gyp ERR! node -v v14.1.0
    gyp ERR! node-gyp -v v5.1.0
    gyp ERR! not ok
    internal/modules/cjs/loader.js:1023
    throw err;
    ^

Error: Cannot find module 'nan'
Require stack:

  • .../tst/node_modules/watchpack-chokidar2/node_modules/fsevents/[eval]
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1020:15)
    at Function.Module._load (internal/modules/cjs/loader.js:890:27)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at [eval]:1:1
    at Script.runInThisContext (vm.js:131:20)
    at Object.runInThisContext (vm.js:297:38)
    at Object. ([eval]-wrapper:10:26)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at evalScript (internal/process/execution.js:94:25) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '.../tst/node_modules/watchpack-chokidar2/node_modules/fsevents/[eval]'
    ]
    }
    gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
    gyp ERR! configure error
    gyp ERR! stack Error: gyp failed with exit code: 1
    gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
    gyp ERR! stack at ChildProcess.emit (events.js:315:20)
    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
    gyp ERR! System Darwin 19.4.0
    gyp ERR! command "/usr/local/Cellar/node/14.1.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    gyp ERR! cwd .../tst/node_modules/watchpack-chokidar2/node_modules/fsevents
    gyp ERR! node -v v14.1.0
    gyp ERR! node-gyp -v v5.1.0
    gyp ERR! not ok
    internal/modules/cjs/loader.js:1023
    throw err;
    ^

Error: Cannot find module 'nan'
Require stack:

  • .../tst/node_modules/webpack-dev-server/node_modules/fsevents/[eval]
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1020:15)
    at Function.Module._load (internal/modules/cjs/loader.js:890:27)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at [eval]:1:1
    at Script.runInThisContext (vm.js:131:20)
    at Object.runInThisContext (vm.js:297:38)
    at Object. ([eval]-wrapper:10:26)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at evalScript (internal/process/execution.js:94:25) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '.../tst/node_modules/webpack-dev-server/node_modules/fsevents/[eval]'
    ]
    }
    gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
    gyp ERR! configure error
    gyp ERR! stack Error: gyp failed with exit code: 1
    gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
    gyp ERR! stack at ChildProcess.emit (events.js:315:20)
    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
    gyp ERR! System Darwin 19.4.0
    gyp ERR! command "/usr/local/Cellar/node/14.1.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    gyp ERR! cwd .../tst/node_modules/webpack-dev-server/node_modules/fsevents
    gyp ERR! node -v v14.1.0
    gyp ERR! node-gyp -v v5.1.0
    gyp ERR! not ok
    npm WARN no-name@ No repository field.
@jhult
Copy link
Contributor

jhult commented May 25, 2020

@artur, this may not be your issue, but does this document help?

https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md

@Artur-
Copy link
Member Author

Artur- commented May 25, 2020

I would say it is fsevents/fsevents#325

@Artur-
Copy link
Member Author

Artur- commented May 25, 2020

So maybe the same as #8278

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

Successfully merging a pull request may close this issue.

2 participants