相关疑难解决方法(0)

错误 C2039:“IsNearDeath”:不是“Nan::Persistent<v8::Object,v8 ::NonCopyablePersistentTraits<T>> 的成员

我最近升级了我nodejsv12.3.1,现在当我尝试npm install在我的项目存储库中运行时,我收到了前面的错误。

error C2059: syntax error: ')' (compiling source file ..\src\custo
m_importer_bridge.cpp) 

error C2660: 'v8::StringObject::New': function does not take 1 arg
uments (compiling source file ..\src\sass_context_wrapper.cpp)

node_modules\nan\nan_object_wrap.h(127): error C2039: 'IsNearDeath': is not a member of 'Nan::Persistent<v8::Object,v
8::NonCopyablePersistentTraits<T>>'
Run Code Online (Sandbox Code Playgroud)

我尝试过的事情

  • 删除 node_modules 文件夹并运行 npm install
  • 关闭vscode,再次打开解决方案
  • 更新 npm 到最新

还有其他人面临同样的问题v12.3.1吗?

node.js npm visual-studio-code angular

21
推荐指数
2
解决办法
1万
查看次数

标签 统计

angular ×1

node.js ×1

npm ×1

visual-studio-code ×1