Node.js qr js npm包未安装

Node.js qr js npm包未安装,node.js,qr-code,Node.js,Qr Code,我正在将qr js npm软件包安装到我的项目中,在将节点版本从v0.11.14-pre更改为0.10.25后,我终于能够安装它了。但在开始我的项目时,会出现错误。 我是新来的节点,不知道如何解决它 错误是- “堆栈”:[ “错误:模块未自注册。”, “出错(本机)”, “at Module.load(Module.js:355:32)”, “at Function.Module._load(Module.js:310:12)”, “at Module.require(Module.js:365

我正在将qr js npm软件包安装到我的项目中,在将节点版本从v0.11.14-pre更改为0.10.25后,我终于能够安装它了。但在开始我的项目时,会出现错误。 我是新来的节点,不知道如何解决它

错误是-

“堆栈”:[ “错误:模块未自注册。”, “出错(本机)”, “at Module.load(Module.js:355:32)”, “at Function.Module._load(Module.js:310:12)”, “at Module.require(Module.js:365:17)”, “在需要时(module.js:384:17)”, “at对象。(/home/oodles/work/125fortime/125fortime/125fortime服务器/EventManagement/node_modules/qr js/node_modules/canvas/lib/bindings.js:2:18)”, “at Module._compile(Module.js:460:26)”, “at Object.Module._extensions..js(Module.js:478:10)”, “at Module.load(Module.js:355:32)”, “at Function.Module._load(Module.js:310:12)”, “at Module.require(Module.js:365:17)”, “在需要时(module.js:384:17)”, “at对象。(/home/oodles/work/125fortime/125fortime/125fortime服务器/EventManagement/node_modules/qr js/node_modules/canvas/lib/canvas.js:12:14)”, “at Module._compile(Module.js:460:26)”, “at Object.Module._extensions..js(Module.js:478:10)”, “at Module.load(Module.js:355:32)”, “at Function.Module._load(Module.js:310:12)”, “at Module.require(Module.js:365:17)”, “在需要时(module.js:384:17)”, “at/home/oodles/work/125fortime/125fortime/125fortime服务器/EventManagement/node_modules/qr js/qr.js:1201:14”, “在对象上。(/home/oodles/work/125fortime/125fortime/125fortime服务器/EventManagement/node_modules/qr js/qr.js:1217:3)”, “在模块处编译(Module.js:460:26)” ], “级别”:“错误”, “消息”:“uncaughtException:模块未自注册。” } { “级别”:“信息”, “消息”:“已连接到mongo服务器。” }

有人能帮忙吗


在运行之前尝试
npm rebuild
,不要使用
sudo
安装dependenciesI,但没有区别,在运行delete
node\u modules
后仍然抛出相同的错误,然后运行
npm install
,你能给我们看一下
package.json
文件吗?已经尝试过了,但是没有结果。我附加了package.json文件映像,有问题。在运行之前,请尝试
npm rebuild
,不要使用
sudo
安装dependenciesI,但没有区别,运行delete
node\u modules
然后运行
npm install
后仍会抛出相同的错误,您能否向我们展示
包.json
文件已尝试,但没有结果。我附带了package.json文件图像,并提出了问题。