node-modules - 为什么 NPM 安装安装旧版本的 node-sass
问题描述
我了解npm install
将安装 package.json 中定义的节点模块版本。我不明白为什么它试图安装旧版本 4.9.1 而不是安装 4.11.0 或更高版本。正因为如此,我得到了错误。有人可以帮我解决这个问题吗?
无法下载“ https://github.com/sass/node-sass/releases/download/v4.9.1/win3 2-ia32-67_binding.node”:
HTTP 错误 404 未找到
环境: 节点版本:v11.0.0 (32bit) Visual Studio 2017
包.json
{
"name": "mydotnetcoreapp",
"version": "1.0.0",
"description": "",
"main": "",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"build:watch": "ng build --watch --output-path=dist-dev",
"build:dev": "ng build --output-path=dist-dev",
"build:prod": "ng build --prod --output-path=dist-prod --output-hashing=none",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"author": "xxxx",
"license": "",
"dependencies": {
"@angular/animations": "^5.0.5",
"@angular/common": "^5.0.5",
"@angular/compiler": "^5.0.5",
"@angular/core": "^5.0.5",
"@angular/forms": "^5.0.5",
"@angular/http": "^5.0.5",
"@angular/platform-browser": "^5.0.5",
"@angular/platform-browser-dynamic": "^5.0.5",
"@angular/router": "^5.0.5",
"@ng-bootstrap/ng-bootstrap": "^1.0.0-beta.5",
"bootstrap": "^4.0.0-beta.2",
"classlist.js": "^1.1.20150312",
"core-js": "^2.5.1",
"font-awesome": "^4.7.0",
"highcharts": "^6.0.2",
"jquery": "^3.2.1",
"lodash-es": "^4.17.4",
"ng2-scroll-to-el": "^1.0.0",
"ngx-cookie-service": "^2.2.0",
"popper.js": "^1.12.9",
"rxjs": "^5.5.2",
"web-animations-js": "^2.3.1",
"zone.js": "^0.8.18"
},
"devDependencies": {
"@angular/cli": "1.5.5",
"@angular/compiler-cli": "^5.0.5",
"@angular/language-service": "^5.0.5",
"@types/highcharts": "^5.0.12",
"@types/jasmine": "^2.8.8",
"@types/jasminewd2": "~2.0.2",
"@types/lodash-es": "^4.17.0",
"@types/node": "^6.0.90",
"chrome": "^0.1.0",
"codelyzer": "^3.2.2",
"del": "^3.0.0",
"gulp": "^3.9.1",
"gulp-clean": "^0.3.2",
"gulp-concat": "^2.6.1",
"gulp-cssmin": "^0.2.0",
"gulp-htmlmin": "^4.0.0",
"gulp-sass": "^4.0.1",
"gulp-uglify": "^3.0.0",
"jasmine-core": "~2.99.1",
"jasmine-marbles": "^0.3.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^2.0.2",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.4.3",
"karma-jasmine": "^1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"launcher": "0.0.1",
"merge-stream": "^1.0.1",
"natives": "^1.1.6",
"node-sass": "^4.11.0",
"protractor": "~5.1.2",
"ts-node": "~3.3.0",
"tslint": "~5.8.0",
"typescript": "~2.4.2"
}
}
解决方案
npm install --save-dev node-sass@4.5.3
推荐阅读
- jupyter-notebook - 如何在 Heatmap 上绘制饼图?
- python - 如何组合字符符号列表中的两个字符串
- arrays - C. 基础。退出循环
- anychart - 如何控制 AnyChart 的 Word Tree 中分支的截断?
- node.js - 如何在游戏更新推送到 Steam 时获得“通知”?
- python - 使用 python (Jupyter notebook) 对 json 数据进行数据预处理
- python - 如果未通过,Pytest 会跳过寻找间接参数吗?
- javascript - Javascript 在页面上给我一个 NaN 但在控制台中给我一个数字?
- c - 对链表节点数组进行排序
- kubernetes - haproxy 登录 kubernetes 容器