bnoordhuis / node-iconv

node.js iconv bindings - text recoding for fun and profit!
Other
799 stars 123 forks source link

Fails at the iconv@1.0.0 install script 'node-waf build install' #184

Closed TejitaRajbhandari closed 6 years ago

TejitaRajbhandari commented 6 years ago

npm ERR! Linux 4.15.0-23-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iconv@1.0.0" npm ERR! node v8.10.0 npm ERR! npm v3.5.2 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn

npm ERR! iconv@1.0.0 install: node-waf build install npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the iconv@1.0.0 install script 'node-waf build install'. 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-waf build install 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! /root/Junkyard-Jumbotron/npm-debug.log Makefile:17: recipe for target 'node-packages' failed make: *** [node-packages] Error 1

bnoordhuis commented 6 years ago

iconv@1.0.0

That's a release from 7.5 years ago. Install the latest (iconv@2.3.0) and it should work.

TejitaRajbhandari commented 6 years ago

I tried that, but it still shows the same error.

bnoordhuis commented 6 years ago

That seems unlikely as node-waf was removed years ago. What does npm install iconv@2.3.0 print?

TejitaRajbhandari commented 6 years ago

npm ERR! Linux 4.15.0-23-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iconv@2.3.0" npm ERR! node v8.10.0 npm ERR! npm v3.5.2 npm ERR! code ELIFECYCLE

npm ERR! iconv@2.3.0 install: node-gyp rebuild npm ERR! Exit status 134 npm ERR! npm ERR! Failed at the iconv@2.3.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! /root/npm-debug.log

bnoordhuis commented 6 years ago

At least it's a different error. Given that exit code 134 I bet that wasn't all it printed, just what was in the log file. Can you copy/paste the output of your terminal?

Do you have make and g++ installed?

TejitaRajbhandari commented 6 years ago

iconv@2.3.0 install /root/node_modules/iconv node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.10.0" gyp WARN EACCES attempting to reinstall using temporary dev dir "/root/node_modules/iconv/.node-gyp" gyp WARN install got an error, rolling back install gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, stat '/root/node_modules/iconv/.node-gyp/8.10.0' gyp ERR! System Linux 4.15.0-23-generic gyp ERR! command "/usr/bin/node" "/usr/local/bin/node-gyp" "rebuild" gyp ERR! cwd /root/node_modules/iconv gyp ERR! node -v v8.10.0 gyp ERR! node-gyp -v v3.7.0 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open '/root/package.json' npm WARN root No description npm WARN root No repository field. npm WARN root No README data npm WARN root No license field. npm ERR! Linux 4.15.0-23-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iconv@2.3.0" npm ERR! node v8.10.0 npm ERR! npm v3.5.2 npm ERR! code ELIFECYCLE

npm ERR! iconv@2.3.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iconv@2.3.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! /root/npm-debug.log root@stem-VirtualBox:~# npm install iconv@2.3.0

iconv@2.3.0 install /root/node_modules/iconv node-gyp rebuild

Aborted (core dumped) npm WARN enoent ENOENT: no such file or directory, open '/root/package.json' npm WARN root No description npm WARN root No repository field. npm WARN root No README data npm WARN root No license field. npm ERR! Linux 4.15.0-23-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iconv@2.3.0" npm ERR! node v8.10.0 npm ERR! npm v3.5.2 npm ERR! code ELIFECYCLE

npm ERR! iconv@2.3.0 install: node-gyp rebuild npm ERR! Exit status 134 npm ERR! npm ERR! Failed at the iconv@2.3.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! /root/npm-debug.log

bnoordhuis commented 6 years ago

This is a permissions error:

gyp ERR! stack Error: EACCES: permission denied, stat '/root/node_modules/iconv/.node-gyp/8.10.0'

And this I don't know; you should probably upgrade to the latest v8.x release:

Aborted (core dumped)