找不到NodeJS nodegui模块

尝试在空白的nodeJS项目上运行nodegui,但不会运行。示例starter-project运行正常,但是我不想在项目中使用webpack。

运行nproc时出错:

sysctl -n hw.logicalcpu

main.js:

node main.js

运行internal/modules/cjs/loader.js:1208 return process.dlopen(module,path.toNamespacedPath(filename)); ^ Error: The specified module could not be found. \\?\C:\Users\user\Documents\project\node_modules\@nodegui\nodegui\build\Release\nodegui_core.node �[90m at Object.Module._extensions..node (internal/modules/cjs/loader.js:1208:18)�[39m �[90m at Module.load (internal/modules/cjs/loader.js:1002:32)�[39m �[90m at Function.Module._load (internal/modules/cjs/loader.js:901:14)�[39m �[90m at Module.require (internal/modules/cjs/loader.js:1044:19)�[39m �[90m at require (internal/modules/cjs/helpers.js:77:18)�[39m at Object.<anonymous> (C:\Users\user\Documents\project\node_modules\�[4m@nodegui�[24m\nodegui\dist\lib\utils\addon.js:3:15) �[90m at Module._compile (internal/modules/cjs/loader.js:1158:30)�[39m �[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)�[39m �[90m at Module.load (internal/modules/cjs/loader.js:1002:32)�[39m �[90m at Function.Module._load (internal/modules/cjs/loader.js:901:14)�[39m this时会输出。

Windows 10 x64内部版本18363,NodeJS版本12.16.1,NPM版本6.14.2,NodeGUI版本0.16.0

yonghengwupan 回答:找不到NodeJS nodegui模块

似乎您需要运行的项目中缺少指定的模块

npm我-指定保存

本文链接:https://www.f2er.com/2640898.html

大家都在问