node.js - “npm install *”中的非法指令
问题描述
我正在尝试按教程安装软件包
但是命令npm install --save express body-parser connect-multiparty sqlite3 bluebird path umzug bcrypt
返回我错误:
Illegal instruction] \ rollbackFailedOptional: verb npm-session 8c141c478c582dd
我试过
npm config rm proxy
npm config rm https-proxy
并重新启动系统
- npm 版本 6.13.7
- 节点版本 13.9.0
- 操作系统:Debian 10
解决方案
the following commands:
npm config rm proxy
npm config rm https-proxy
is to remove proxy settings from global NPM settings. Only use if u are using NPM behind a proxy server.
Try the follow:
npm cache clean --force
This removes the NPM cache. So, try again to run the installation of each of the packages ...
npm install --save express
npm install --save body-parser
npm install --save sqlite3
....
推荐阅读
- html - 在卡片中添加折叠页脚(引导程序)
- regex - 如何正则表达式匹配所有情况
- firebase - Firebase BigQuery 数据范围
- enums - Rust proc_macro_derive (with syn crate) 生成用于匹配的枚举变体
- android - 使用 PackageManager 时如何传递特定链接?
- python - 查找给定字符串中最少字符数的 Python 代码
- google-cloud-firestore - Angular Cloud Firestore 根据登录用户获取数据
- php - 计算引擎 | LSB 启动失败:Treasure Data 的数据采集器
- django - 不同模型的Django模型
- c# - ML.NET 张量流 half_plus_two