我在尝试在新计算机上为我的应用程序安装节点模块时遇到错误:
从我所看到的是它没有尝试安装contextify,我猜这是我的一个包的依赖。
我将python安装在它所说的文件夹路径中,并作为环境变量(windows 10)。
这是我的包文件依赖项:
"devDependencies": {
"babel-core": "^6.25.0",
"babel-loader": "^6.4.1",
"babel-preset-env": "^1.5.2",
"babel-preset-es2015": "^6.24.1",
"bootstrap-loader": "^1.0.10",
"bootstrap-sass": "^3.3.6",
"crypto-js": "^3.1.5",
"css-loader": "^0.23.1",
"datatables.net": "^1.10.10",
"datatables.net-jqui": "^1.10.10",
"del": "^0.1.3",
"event-stream": "^3.3.2",
"expose-loader": "^0.7.1",
"file-loader": "^0.8.5",
"font-awesome-webpack": "0.0.4",
"gulp": "^3.9.0",
"gulp-angular-templatecache": "^1.8.0",
"gulp-autoprefixer": "^3.1.0",
"gulp-babel": "^6.1.2",
"gulp-bump": "^1.0.0",
"gulp-cached": "^1.1.0",
"gulp-changed": "^1.3.0",
"gulp-concat": "^2.6.0",
"gulp-fixmyjs": "1.0.2",
"gulp-header": "^1.7.1",
"gulp-htmlmin": "^1.3.0",
"gulp-install": "^0.6.0",
"gulp-jscs": "^3.0.2",
"gulp-jshint": "^2.0.0",
"gulp-livereload": "^3.8.1",
"gulp-load-plugins": "^1.1.0",
"gulp-minify-css": "^1.2.2",
"gulp-ng-annotate": "^1.1.0",
"gulp-notify": "^2.2.0",
"gulp-packer": "^0.1.2",
"gulp-plumber": "^1.0.1",
"gulp-preprocess": "^2.0.0",
"gulp-prompt": "^0.1.2",
"gulp-rename": "^1.2.2",
"gulp-s3": "^0.3.0",
"gulp-sass": "^2.1.1",
"gulp-size": "^2.0.0",
"gulp-sourcemaps": "^1.6.0",
"gulp-strip-debug": "^1.1.0",
"gulp-uglify": "^1.5.1",
"gulp-util": "^3.0.7",
"gulp-watch": "^2.0.0",
"gulp-webpack": "^1.5.0",
"gulp-zip": "^3.1.0",
"html-loader": "^0.4.0",
"imagemin-jpegtran": "^4.3.2",
"imagemin-optipng": "^4.3.0",
"img-loader": "^1.2.2",
"jquery": "^1.12.1",
"jshint": "^2.8.0",
"jshint-html-reporter": "^0.2.4",
"jshint-stylish": "^2.1.0",
"less": "^2.5.3",
"less-loader": "^2.2.2",
"node-sass": "^3.4.2",
"open-sans-fontface": "^1.4.0",
"resolve-url-loader": "^1.4.3",
"run-sequence": "^1.1.5",
"sass-loader": "^3.1.2",
"style-loader": "^0.13.0",
"url-loader": "^0.5.7",
"webpack": "^1.15.0",
"webpack-dev-server": "^1.14.0"
},
"dependencies": {
"angular": "^1.5.3",
"angular-animate": "^1.5.3",
"angular-messages": "^1.5.3",
"angular-resource": "^1.5.3",
"angular-sanitize": "^1.5.3",
"angular-ui-bootstrap": "^0.14.3",
"angular-ui-router": "^0.2.15",
"animate.css": "^3.4.0",
"bluebird": "^3.1.1",
"bootstrap": "^3.3.6",
"datatables": "^1.10.9",
"datatables-responsive": "^1.0.7",
"datatables-tabletools": "^2.2.2",
"font-awesome": "^4.5.0",
"gulp-spsave": "^3.0.0",
"imagemin-gifsicle": "^4.2.0",
"lodash": "^4.17.4",
"moment": "^2.10.6",
"sp-pnp-js": "^2.0.8",
"spsave": "^3.0.2",
"toastr": "^2.1.2",
"ui-select": "^0.16.1"
}
编辑:我已经设置了环境变量,但我再次设置它,以防万一,如下所示:
答案 0 :(得分:-2)
问题表明,你需要创建一个python env变量。您需要使用此命令来设置python env变量
set PYTHON=thePath
在你的情况下,我认为它是
set PYTHON=C:\Program Files (x86)\Python36-32\python.exe
这将设置env变量。
有关如何设置 env python变量的详细信息,请参阅this case。