繁体   English   中英

通过Node.Js安装linkedin刮板模块时出错

[英]Error while installing linkedin-scraper module through Node.Js

我是node.js的初学者。 我已经安装了Node.js,并且正在使用以下命令安装名为“ linkedin-刮板”的模块

“ npm安装linkedin刮板”

我遇到以下错误。 我还安装了Anaconda 3和Anaconda2,并通过它使用python。

     gyp ERR! configure error
 gyp ERR! stack Error: Python executable 
 "C:\ProgramData\Anaconda3\python.EXE" is
 v3.6.1, which is not supported by gyp.
 gyp ERR! stack You can pass the --python switch to point to Python >= 
 v2.5.0 & <
 3.0.0.
 gyp ERR! stack     at failPythonVersion (C:\Program  
 Files\nodejs\node_modules\np
 m\node_modules\node-gyp\lib\configure.js:454:14)
gyp ERR! stack     at C:\Program 
Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:443:9
 gyp ERR! stack     at ChildProcess.exithandler (child_process.js:195:7)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at maybeClose (internal/child_process.js:891:16)
gyp ERR! stack     at Socket.<anonymous> (internal/child_process.js:342:11)
gyp ERR! stack     at emitOne (events.js:96:13)
gyp ERR! stack     at Socket.emit (events.js:188:7)
gyp ERR! stack     at Pipe._handle.close [as _onclose] (net.js:497:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program 
Files\\nodej
s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\w7\node_modules\contextify
gyp ERR! node -v v6.11.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open ' 
C:\Users\w7\package.jso
n'npm WARN w7 No description
npm WARN w7 No repository field.
npm WARN w7 No README data
npm WARN w7 No license field.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program 
Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "i" "linkedin-scraper"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! contextify@0.1.15 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.15 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the contextify 
package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project 
with:
npm ERR!     npm bugs contextify
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls contextify
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\w7\npm-debug.log

“ C:\\ ProgramData \\ Anaconda3 \\ python.EXE”是v3.6.1,gyp不支持。 糟糕! 堆栈您可以传递--python开关以指向Python> = v2.5.0&<3.0.0。

似乎Linkedin抓取工具不支持python 3+。 尝试安装大于2.5或小于3.0的python

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM