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

npm install doesn't work in node 12 #54

Open
kerspoon opened this issue May 27, 2020 · 1 comment
Open

npm install doesn't work in node 12 #54

kerspoon opened this issue May 27, 2020 · 1 comment

Comments

@kerspoon
Copy link

If you try to install with node 12 you get a lot of errors like:

~\chalktalk\server\node_modules\bufferutil\src\bufferutil.cc(25): error C2039: 'Handle': is not a member of 'v8'

Seems to be utf-8-validate and bufferutil causing the problem.

Looks like a similar error to nodejs/node-gyp#1804 (comment)

Might be worth upgrading these packages or just putting a note in the install page on the wiki.

>npm --version
6.9.0

>node --version
v12.0.0
@kerspoon
Copy link
Author

I got it running on windows, I used nodist (https://github.com/nullivex/nodist) to install version 10 nodist global 10.x made sure the npm version matched nodist npm global match deleted the node_modules folder, then ran npm install .

$ node --version
v10.20.1

$ npm --version
6.14.4

I still get dozens of warnings and one error (error below)

c:\users\name\chalktalk\server\node_modules\utf-8-validate\node_modules\nan\nan_maybe_43_inl.h(88): error C2039: 'ForceSet': is not a member of 'v8::Object' (compiling source file ..\src\validation.cc) [C:\Users\name\chalktalk\server\node_modules\utf-8-validate\build\validation.vcxproj]
  c:\users\name\appdata\local\node-gyp\cache\10.20.1\include\node\v8.h(3243): note: see declaration of 'v8::Object' (compiling source file ..\src\validation.cc)

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