node-pre-gyp WARN Using request for node-pre-gyp https download
2021/8/31 22:36:29
本文主要是介绍node-pre-gyp WARN Using request for node-pre-gyp https download,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
when i start to run my node project below:
Command代码![收藏代码](https://www.iteye.com/images/icon_star.png)
- $ DEBUG=xxx_project:* npm start
then it apperred the err below:
Error: Cannot find module '/Users/xxx/Documents/workspace/xxx-project/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node'code: 'MODULE_NOT_FOUND',
npm ERR! code ELIFECYCLE
npm ERR! errno 1
then i try this: $ npm rebuild
> bcrypt@4.0.1 install /Users/Documents/workspace/ipet-server/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
try using build from source like this:
Command代码
![收藏代码](https://www.iteye.com/images/icon_star.png)
- npm --build-from-source install bcrypt -g
For anyone else here who is getting the warning:
node-pre-gyp WARN Using needle for node-pre-gyp https download
it either needs to be built from source or installed via binary download. If you have Visual Studio installed, you ca try npm install sqlite3 --build-from-source
, which is also a safer option.
bcrypt
needs to be built natively. If you don't feel comfortable building it with c++ compiler, I suggest you take a look at the bcrypt-nodejs
module.
这篇关于node-pre-gyp WARN Using request for node-pre-gyp https download的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-07-04TiDB 资源管控的对撞测试以及最佳实践架构
- 2024-07-03万字长文聊聊Web3的组成架构
- 2024-07-02springboot项目无法注册到nacos-icode9专业技术文章分享
- 2024-06-26结对编程到底难不难?答案在这里
- 2024-06-19《2023版Java工程师》课程升级公告
- 2024-06-15matplotlib作图不显示3D图,怎么办?
- 2024-06-1503-Loki 日志监控
- 2024-06-1504-让LLM理解知识 -Prompt
- 2024-06-05做软件测试需要懂代码吗?
- 2024-06-0514-ShardingSphere的分布式主键实现