@Jaxa
студент профессии веб-програмированые

Не устанавливается модуль Iconv. В чём может быть проблема?

у меня проблемы с граберром сайтов. Тут поставлена такая задачка граббит сайти с помощью модуля express.js. Так вот я выбрал один сайт у него оказывается кодировка 'Windows-1251' и можеть именно поэтому у меня получается такие символы ��������� . Немного погуглив я попробовал разные модули но к сожеланию ничего не помогло. Сказали что модуль iconv поможет но она не устанавливается . Выдается такая ошибка:
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
+-- cheerio@0.20.0
+-- cookie@0.2.3
+-- cookie-parser@1.4.1 extraneous
+-- encoding@0.1.12
`-- jconv@0.1.5 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! iconv@2.2.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the iconv@2.2.0 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
Если кто сможет решит эту проблему и без модуля iconv помогите. Заранее спасибо
  • Вопрос задан
  • 557 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы