I am trying to run two of the below commands :
npm install
npm audit fix
in VS Code when the below error is reported.
error C2664: 'v8::String::Utf8Value::Utf8Value(const v8::String::Utf8Value &)': cannot conver
t argument 1 from 'v8::Local<v8::Value>' to 'const v8::String::Utf8Value &
Any help to resolve this is much appreciated!!
This described the issue, and this somewhat-hidden post helped me fix the buggy node-sass .cpp file to where I was able to proceed, using the version I wanted to.
I edited the node-sass create_string.cpp
file, changing v8::String::Utf8Value string(value);
to v8::String::Utf8Value string(v8::Isolate::GetCurrent(), value);
.
Change Nodejs to version 10.19.0, node-sass not working with Nodejs 12.
Change Nodejs version to [email protected] for nodeJS 12.
For more help go through this DOC
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With