C
C
Chakhongir Tulforov2016-05-10 05:02:50
Node.js
Chakhongir Tulforov, 2016-05-10 05:02:50

The Iconv module is not installed. What could be the problem?

I'm having problems with the site grabber. Here is the task of grabbing a site using the express.js module. So I chose one site, it turns out to have the encoding 'Windows-1251' and maybe that's why I get such characters ��������� . After a little googling, I tried different modules, but unfortunately nothing helped. They said that the iconv module will help but it is not installed. The following error is produced:
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:401:14)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:356:11
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 10.0.10240
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp. js" "rebuild"
gyp ERR! cwd C:\Users\JAHONGIR-PC\WebstormProjects\translator\node_modules\iconv
gyp ERR! node -v v5.10.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
C:\Users\JAHONGIR-PC\WebstormProjects\translator
+-- [email protected]
+-- [email protected]
+-- [email protected] extraneous
+-- [email protected]
` -- [email protected] extraneous
npm WARN translator No description
npm WARN translator No repository field.
npm WARN translator No license field.
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i" "iconv"
npm ERR! node v5.10.0
npm ERR! npm v3.8.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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 iconv 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 iconv
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls iconv
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\JAHONGIR-PC\WebstormProjects\translator\npm-debug.log
If anyone can solve this problem without the iconv module, please help. Thanks in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question