当我用Angular在我的项目上安装npm时。节点sass/node gyp安装失败,错误显示如下:
$npm安装
节点-sass@4.10.0安装C:\Users\d\Documents\project\app\node\u modules\node sass node scripts/install.js
从https://github.com/sass/node-sass/releases/download/v4.10.0/win32-x64-72_binding.node下载二进制文件无法下载"https://github.com/sass/node-sass/releases/download/v4.10.0/win32-x64-72_binding.node":
HTTP错误404未找到
提示:如果您所在的位置无法访问github.com,请尝试通过HTTP_proxy设置代理,例如。
export HTTP_PROXY=http://example.com:1234
或配置npm代理通过
npm config set proxy http://example.com:8080
节点-sass@4.10.0postinstall C:\Users\d\Documents\project\app\node\u modules\node sass node scripts/build.js
从166个贡献者中添加了83个包,删除了618个包,更新了191个包,并在52.38秒内审核了1597个包。发现2966个漏洞(2197个低漏洞,11个中等漏洞,756个高漏洞,2个严重漏洞)运行npm audit fix
进行修复,或npm audit
获取详细信息
package.json
{
"name": "project",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "7.1.4",
"@angular/cdk": "7.1.0",
"@angular/common": "7.1.4",
"@angular/core": "7.1.4",
"@angular/forms": "7.1.4",
"@angular/http": "7.1.4",
"@angular/platform-browser": "7.1.4",
"@angular/platform-browser-dynamic": "7.1.4",
"@angular/router": "7.1.4",
"@fortawesome/fontawesome-free": "5.12.0",
"@ionic-native/core": "5.1.0",
"@ionic-native/file": "5.1.0",
"@ionic-native/file-path": "5.1.0",
"@ionic-native/file-transfer": "5.1.0",
"@ionic-native/in-app-browser": "5.5.1",
"@ionic-native/native-page-transitions": "5.5.1",
"@ionic-native/splash-screen": "5.1.0",
"@ionic-native/status-bar": "5.1.0",
"@ionic/angular": "4.0.0-beta.15",
"@kolkov/angular-editor": "^0.15.1",
"@progress/kendo-angular-buttons": "^4.0.0",
"@progress/kendo-angular-charts": "3.9.0",
"@progress/kendo-angular-dateinputs": "2 - 3",
"@progress/kendo-angular-dropdowns": "2 - 3",
"@progress/kendo-angular-excel-export": "1 - 2",
"@progress/kendo-angular-grid": "^3.14.4",
"@progress/kendo-angular-inputs": "2 - 5",
"@progress/kendo-angular-intl": "^1.0.0",
"@progress/kendo-angular-l10n": "^1.1.0",
"@progress/kendo-angular-popup": "^2.0.0",
"@progress/kendo-data-query": "^1.0.0",
"@progress/kendo-drawing": "^1.0.0",
"@progress/kendo-theme-default": "latest",
"angular-gridster2": "^7.2.0",
"angular-ng-autocomplete": "1.1.12",
"angular-resize-event": "1.2.1",
"cordova-android": "8.0.0",
"cordova-ios": "5.0.1",
"cordova-plugin-device": "2.0.2",
"cordova-plugin-ionic-webview": "2.3.1",
"cordova-plugin-splashscreen": "5.0.2",
"cordova-plugin-statusbar": "2.4.2",
"cordova-plugin-whitelist": "1.3.3",
"core-js": "^2.4.1",
"file-saver": "^2.0.2",
"hammerjs": "2.0.0",
"ionic": "4.6.0",
"jspdf": "^1.5.3",
"jszip": "^3.2.2",
"lodash": "4.17.15",
"moment": "2.24.0",
"mydatepicker": "2.6.6",
"ng-select": "1.0.2",
"ng2-ace-editor": "0.3.9",
"ngx-bootstrap": "5.3.2",
"ngx-color-picker": "^5.3.8",
"ngx-dropzone": "1.2.0",
"ngx-perfect-scrollbar": "7.2.1",
"release": "6.0.1",
"rxjs": "6.3.3",
"rxjs-compat": "^6.0.0",
"stream": "0.0.2",
"tslib": "1.9.0",
"zone.js": "0.8.26"
},
"devDependencies": {
"@angular-devkit/architect": "0.11.4",
"@angular-devkit/build-angular": "0.11.4",
"@angular-devkit/core": "7.1.4",
"@angular-devkit/schematics": "7.1.4",
"@angular/cli": "7.1.4",
"@angular/compiler": "7.1.4",
"@angular/compiler-cli": "7.1.4",
"@angular/language-service": "7.1.4",
"@ionic/angular-toolkit": "1.2.0",
"@types/node": "10.12.0",
"@types/jasmine": "2.8.8",
"@types/jasminewd2": "2.0.3",
"codelyzer": "4.5.0",
"jasmine-core": "2.99.1",
"jasmine-spec-reporter": "4.2.1",
"karma": "3.1.4",
"karma-chrome-launcher": "2.2.0",
"karma-coverage-istanbul-reporter": "2.0.1",
"karma-jasmine": "1.1.2",
"karma-jasmine-html-reporter": "0.2.2",
"protractor": "5.4.0",
"ts-node": "7.0.0",
"tslint": "5.12.0",
"typescript": "3.1.6",
"@svgdotjs/svg.js": "3.0.16"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
},
"cordova-plugin-ionic-keyboard": {},
"com.telerik.plugins.nativepagetransitions": {},
"cordova-plugin-inappbrowser": {}
},
"platforms": [
"android",
"ios"
]
}
}
npm版本:6.14.4
重新安装Node Js,在其中一个页面上安装时,会出现一个复选框来安装额外的工具,只需选中它,然后单击“下一步”。在NodeJS安装之后,它会打开一个额外的窗口,要求您按键,只需继续操作即可。完成安装后,执行上述情况下的操作。那就行了。
我们有问题运行“NPM安装”在我们的项目。找不到某个文件: 对于我们来说,这个节点--陀螺似乎是一个永无止境的痛苦之源。一开始它抱怨它需要python,所以我们安装了它。然后它抱怨它需要我们安装的VCBuild,(使用.NET2.0SDK),现在我们出现了这个错误。这几乎就像是错误越来越模糊,感觉我们走上了一条错误的道路。 奇怪的是,我们团队中的其他人在运行NPM-Install时没有任何问题。
问题内容: 我有一个使用和的NPM项目,都需要node-gyp来安装它们。当我这样做时,出现以下错误: 以前由于未安装Python 2.7而失败,现在是这样。这让我头疼。我该怎么办? 问题答案: 下面的答案代表手动安装,但是有一种简单得多的方法:自动安装。 以管理员身份打开Powershell并运行。 安装需要时间,但对我来说却像一个魅力!
问题内容: 我正在尝试使用安装模块。但是它总是会出错。这是错误: 我一直在搜索它,通常说它是关于。我的节点是v10.16.0。我还安装了Python 2.7。我的vs版本是2019。 确实,这仅与模块有关。如果是这样,是否还有其他解决方案可在Node.js中预览png等文件 编辑 我已卸载VS2019并安装了VS2017 Build Tools。但是仍然给出另一个错误: 问题答案: 我过去也遇到过
我的Windows工作站上的npm软件包有一些问题...我的文件中有一组NPM依赖项: 当我尝试运行时,我得到了与包和类似有关的奇怪错误。 以下是错误: 有人能帮你解决问题吗?我不是经验丰富的windows用户,但目前我应该使用windows:( 更新:这里是我每次更新新的NPM错误的错误日志。 系统详细信息:Windows 7 Enterprice 64位操作系统 节点版本:V5.1.0 NPM
我明白将安装package.json.中定义的节点模块版本,我不明白为什么它试图安装较旧的版本4.9.1,而不是安装4.11.0或更高版本。正因为如此,我得到了下面的错误。有人能帮我解决这个问题吗? 无法下载“https://github.com/sass/node-sass/releases/download/v4.9.1/win32-ia32-67_绑定节点“: 找不到HTTP错误404 环境
突然,在我的一个jenkins环境构建开始失败,而在本地机器中,它似乎工作正常,因为我安装了python, 从日志中,我能够检测到问题是内部依赖,即node-gyp v3.5.0从node-sass v3.8.0当我通过访问这个关于node-gyp的研究,并发现需要安装Python的先决条件。 所以我的问题是,我可以安装哪个版本的node sass来绕过这个问题,还是有更好的解决方案,因为我的构建