作者:QueenieYam任嘉明 | 来源:互联网 | 2023-09-25 16:12
SoImtryingtorunmyMEANstackappagainandwhenIenternodeserver.js,Igeterror:所以我试图再次运行
So I'm trying to run my MEAN stack app again and when I enter node server.js, I get error:
所以我试图再次运行我的MEAN堆栈应用程序,当我进入节点server.js时,我收到错误:
/Users//Desktop/Wardrobe_fairy (Update)/api/node_modules/bcrypt/node_modules/bindings/bindings.js:83
throw e
^
Error: Module did not self-register.
at Error (native)
at Object.Module._extensions..node (module.js:434:18)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at bindings (/Users/username/Desktop/Wardrobe_fairy (Update)/api/node_modules/bcrypt/node_modules/bindings/bindings.js:76:44)
at Object. (/Users/username/Desktop/Wardrobe_fairy (Update)/api/node_modules/bcrypt/bcrypt.js:3:35)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/Users/username/Desktop/Wardrobe_fairy (Update)/api/models/user.js:2:12)
at Module._compile (module.js:409:26)
I've deleted Bcrypt from Package.json and installed again through 'npm install bcrypt' Deleted and reinstalled /usr/local/lib Nodemon and Npm. Still the same error :(
我已经从Package.json中删除了Bcrypt并通过'npm install bcrypt'再次安装删除并重新安装了/ usr / local / lib Nodemon和Npm。仍然是同样的错误:(
1 个解决方案