node.js - 如果出错,如何在节点上安装模块 sqlite3
问题描述
我尝试安装模块 sqlite?但是有一个错误,怎么办:
$ npm install sqlite3
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
sqlite3@5.0.0 install D:\CODE\21_data\node_modules\sqlite3
node-pre-gyp install --fallback-to-build
Node.js is only supported on Windows 8.1, Windows Server 2012 R2, or higher.
Setting the NODE_SKIP_PLATFORM_CHECK environment variable to 1 skips this
check, but Node.js might not execute correctly. Any issues encountered on
npm WARN enoent ENOENT: no such file or directory, open 'D:\CODE\21_data\package.json'
npm WARN 21_data No description
npm WARN 21_data No repository field.
npm WARN 21_data No README data
npm WARN 21_data No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 216
npm ERR! sqlite3@5.0.0 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 216
npm ERR!
npm ERR! Failed at the sqlite3@5.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
感谢您的回答!
解决方案
解决的问题: 1.npm cache clean --force 2.delete node_modules 文件夹 3.delete package-lock.json 文件 4.npm install
推荐阅读
- python - 芹菜和烧瓶,同一个芹菜应用实例
- python - 过滤数据时出现内存错误
- python - 使用 Scikit Learn 查找集群的关键词
- azure - 从 VS Code 部署 Azure 函数 - 成功但在门户中不可见
- c# - 光标的屏幕坐标永远不会接近 0
- node.js - WinstonJS 自定义级别文件
- hyperledger-fabric - 对等节点在 Hyperledger Fabric 中崩溃后如何检索旧数据?
- java - 如何使用 DSL 为 ack/nack 和返回队列配置 amqp-outbound 适配器?
- excel - If else 语句程序中的运行时错误“1004”
- amazon-web-services - 无法通过规范 ID 共享 AWS S3 存储桶