在Windows上运行Python以获取Node.js依赖项
我正在进入Node.js代码库,这需要我通过NPM下载一些依赖项,即jQuery。
在尝试运行时npm install jquery
,我不断收到此错误:
Your environment has been set up for using Node.js 0.8.21 (x64) and NPM C:\Users\Matt Cashatt>npm install jquery npm http GET https://registry.npmjs.org/jquerynpm http 304 https://registry.npmjs.org/jquerynpm http GET https://registry.npmjs.org/jsdomnpm http GET https://registry.npmjs.org/xmlhttprequestnpm http GET https://registry.npmjs.org/htmlparser/1.7.6npm http GET https://registry.npmjs.org/location/0.0.1npm http GET https://registry.npmjs.org/navigatornpm http GET https://registry.npmjs.org/contextifynpm http 304 https://registry.npmjs.org/htmlparser/1.7.6npm http 304 https://registry.npmjs.org/xmlhttprequestnpm http 304 https://registry.npmjs.org/location/0.0.1npm http 304 https://registry.npmjs.org/navigatornpm http 304 https://registry.npmjs.org/jsdomnpm http 304 https://registry.npmjs.org/contextifynpm http GET https://registry.npmjs.org/bindingsnpm http GET https://registry.npmjs.org/cssomnpm http GET https://registry.npmjs.org/cssstylenpm http GET https://registry.npmjs.org/requestnpm http 304 https://registry.npmjs.org/bindings> contextify@0.1.4 install C:\Users\Matt Cashatt\node_modules\jquery\node_module s\contextify> node-gyp rebuild C:\Users\Matt Cashatt\node_modules\jquery\node_modules\contextify>node "C:\Progr am Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\b in\node-gyp.js" rebuild npm http 304 https://registry.npmjs.org/cssstylenpm http 304 https://registry.npmjs.org/cssomnpm http 304 https://registry.npmjs.org/requestgyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT HON env variable. gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\nod
看起来失败是由于缺少Python安装。好吧,我已经安装了Python,设置了变量,然后重新启动并仍然出错。
关于我缺少什么的任何线索?
汪汪一只猫
小唯快跑啊