使用Python版本27表达express-node-gyp构建错误
发布时间:2020-12-20 13:42:17 所属栏目:Python 来源:网络整理
导读:我正在尝试构建一个expressJs应用程序一直在尝试安装“restify”来进行休息调用.出于某种原因,node-gyp构建给我一个错误: 以下是我的版本: 1. node:v0.10.27 2. npm:1.4.8 3.表达:4.0.0 Python:27 我有Windows 7企业版64位操作系统. 当我尝试安装resti
我正在尝试构建一个expressJs应用程序一直在尝试安装“restify”来进行休息调用.出于某种原因,node-gyp构建给我一个错误:
以下是我的版本: 我有Windows 7企业版64位操作系统. 当我尝试安装restify时出现错误,当我尝试安装nodemon和其他几个节点模块包时,我看到了类似的错误: $npm install restify npm http GET https://registry.npmjs.org/restify npm http 304 https://registry.npmjs.org/restify npm http GET https://registry.npmjs.org/bunyan npm http GET https://registry.npmjs.org/backoff npm http GET https://registry.npmjs.org/escape-regexp-component npm http GET https://registry.npmjs.org/csv npm http GET https://registry.npmjs.org/assert-plus npm http GET https://registry.npmjs.org/keep-alive-agent npm http GET https://registry.npmjs.org/tunnel-agent npm http GET https://registry.npmjs.org/mime npm http GET https://registry.npmjs.org/negotiator npm http GET https://registry.npmjs.org/lru-cache npm http GET https://registry.npmjs.org/http-signature npm http GET https://registry.npmjs.org/once npm http GET https://registry.npmjs.org/dtrace-provider npm http GET https://registry.npmjs.org/node-uuid npm http GET https://registry.npmjs.org/qs npm http GET https://registry.npmjs.org/verror npm http GET https://registry.npmjs.org/semver npm http GET https://registry.npmjs.org/formidable npm http GET https://registry.npmjs.org/deep-equal npm http GET https://registry.npmjs.org/spdy npm http 304 https://registry.npmjs.org/bunyan npm http 304 https://registry.npmjs.org/assert-plus npm http 304 https://registry.npmjs.org/backoff npm http 304 https://registry.npmjs.org/mime npm http 304 https://registry.npmjs.org/negotiator npm http 304 https://registry.npmjs.org/escape-regexp-component npm http 304 https://registry.npmjs.org/csv npm http 304 https://registry.npmjs.org/lru-cache npm http 304 https://registry.npmjs.org/keep-alive-agent npm http 304 https://registry.npmjs.org/once npm http 304 https://registry.npmjs.org/node-uuid npm http 304 https://registry.npmjs.org/qs npm http 304 https://registry.npmjs.org/tunnel-agent npm http 304 https://registry.npmjs.org/semver npm http 304 https://registry.npmjs.org/deep-equal npm http 304 https://registry.npmjs.org/http-signature npm http 304 https://registry.npmjs.org/dtrace-provider npm http 304 https://registry.npmjs.org/verror npm http 304 https://registry.npmjs.org/formidable npm http 304 https://registry.npmjs.org/spdy npm http GET https://registry.npmjs.org/asn1 npm http GET https://registry.npmjs.org/ctype npm http GET https://registry.npmjs.org/extsprintf npm http 304 https://registry.npmjs.org/ctype > dtrace-provider@0.2.8 install c:apps....node_modulesrestifyno de_modulesdtrace-provider > node-gyp rebuild c:apps.....restifynode_modulesdtrace-provider>node **"c:Program Filesnodejsnode_modulesnpmbinnode-gyp-bin....node_modulesn ode-gypbinnode-gyp.js" rebuild Building the projects in this solution one at a time. To enable parallel build,please add the "/m" switch. MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this,1) install the .NET Framework 2.0 SDK,2) install Microsoft Visua l Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [c:appstrendytrendy_uinode_modulesrestifynode_mo dulesdtrace-providerbuildbinding.sln]** gyp ERR! build error gyp ERR! stack Error: `C:windowsMicrosoft.NETFrameworkv4.0.30319msbuild.exe ` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (c:Program Filesnodejsnode_modules npmnode_modulesnode-gyplibbuild.js:267:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:807: 12) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "node" "c:Program Filesnodejsnode_modulesnpmnode_modu lesnode-gypbinnode-gyp.js" "rebuild" gyp ERR! cwd c:appstrendytrendy_uinode_modulesrestifynode_modulesdtrace-p rovider gyp ERR! node -v v0.10.27 gyp ERR! node-gyp -v v0.13.0 gyp ERR! not ok npm http 304 https://registry.npmjs.org/asn1 npm http 304 https://registry.npmjs.org/extsprintf npm http GET https://registry.npmjs.org/mv npm http 304 https://registry.npmjs.org/mv npm WARN optional dep failed,continuing dtrace-provider@0.2.8 restify@2.7.0 node_modulesrestify ├── assert-plus@0.1.5 ├── once@1.3.0 ├── tunnel-agent@0.4.0 ├── deep-equal@0.0.0 ├── mime@1.2.11 ├── qs@0.6.6 ├── escape-regexp-component@1.0.2 ├── keep-alive-agent@0.0.1 ├── lru-cache@2.3.1 ├── negotiator@0.3.0 ├── node-uuid@1.4.1 ├── semver@2.2.1 ├── backoff@2.3.0 ├── verror@1.3.7 (extsprintf@1.0.2) ├── spdy@1.19.3 ├── http-signature@0.10.0 (assert-plus@0.1.2,asn1@0.1.11,ctype@0.5.2) ├── formidable@1.0.14 ├── bunyan@0.22.1 (mv@0.0.5) └── csv@0.3.7 我使用了node,npm和express的错误版本组合吗?任何帮助,将不胜感激. 我尝试恢复到Python33,然后我收到一条错误消息,指出node-gyp只支持2.5到3之间的python版本. 谢谢 解决方法
该错误与python版本无关.
node-gyp有许多先决条件,以便在Windows上运行并需要一些安装.按照说明 here. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- python 获取mac地址的两种方法
- python-opencv在有噪音的情况下提取图像的轮廓实例
- python – Django Clickjacking Protection resp.get(‘X-F
- python – NLTK的XMLCorpusReader可用于多文件语料库吗?
- 9个使用Python的世界级软件公司!你还不学Python吗?
- python – 是否有文本编辑器会自动确定是否缩进空格或制表符
- Python高级 - 魔术方法
- 是否有Python等效的Groovy / Grails for Java
- python三大流程
- Python时间模块datetime、time、calendar的使用方法