首页 > 解决方案 > “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 并重新启动系统

标签: node.jsnpmdebian

解决方案


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
....

推荐阅读