【发布时间】:2019-10-16 21:07:33
【问题描述】:
我最近将我的nodejs 升级到v12.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>>'
我尝试过的事情
- 删除了node_modules文件夹并运行
npm install - 关闭 vscode 并再次打开解决方案
- 将 npm 更新到最新版本
还有其他人在v12.3.1 遇到同样的问题吗?
【问题讨论】:
-
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself.
标签: node.js angular npm visual-studio-code