这是我的包
"license": "MIT",
"dependencies": {
"@angular/animations": "^4.0.3",
"@angular/common": "^4.0.3",
"@angular/compiler": "~4.0.0",
"@angular/core": "~4.0.0",
"@angular/forms": "~4.0.0",
"@angular/http": "~4.0.0",
"@angular/material": "^2.0.0-beta.6",
"@angular/platform-browser": "~4.0.0",
"@angular/platform-browser-dynamic": "~4.0.0",
"@angular/router": "~4.0.0",
"@types/jquery": "^2.0.42",
"angular-in-memory-web-api": "~0.3.0",
"angular2-http-file-upload": "^1.0.6",
"angular2-qrcode": "^2.0.1",
"bootstrap": "^3.3.7",
"core-js": "^2.4.1",
"ng2-bootstrap": "1.3.0",
"ng2-completer": "^1.5.2",
"ng2-datetime": "^1.4.0",
"ng2-file-upload": "^1.2.1",
"ng2-qrcode-reader": "0.0.1",
"ng2-webcam": "^1.2.4",
"ngx-qrcode2": "0.0.3",
"require": "^2.4.20",
"rxjs": "5.0.1",
"systemjs": "0.19.40",
"traceur": "0.0.111",
"zone.js": "^0.8.12"
},
"devDependencies": {
"@angular/cli": "^1.2.3",
"@types/jasmine": "2.5.36",
"@types/node": "^6.0.46",
"canonical-path": "0.0.2",
"concurrently": "^3.2.0",
"jasmine-core": "~2.4.1",
"karma": "^1.3.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-jasmine-html-reporter": "^0.2.2",
"lite-server": "^2.2.2",
"lodash": "^4.16.4",
"protractor": "~4.0.14",
"rimraf": "^2.5.4",
"tslint": "^3.15.1",
"typescript": "~2.3.2"
}
更新:我已经安装了python和node-gyp并显示了这个
参见屏幕截图我使用了2个命令,另一个命令不起作用
答案 0 :(得分:0)
错误:Python可执行文件是v3.6.1,gyp
不支持
根据推荐的node-gyp python v2.7的documentation,不支持v3.x.x.只需尝试安装python版本2.7,然后安装gyp(请参阅github页面上的installation guide)。
或许这个命令对你也有帮助
npm install --python=python2.7
然后npm install -g node-gyp