Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing/updating harp with npm updated #608

Open
NetLancer opened this issue Jun 5, 2017 · 15 comments
Open

Error installing/updating harp with npm updated #608

NetLancer opened this issue Jun 5, 2017 · 15 comments

Comments

@NetLancer
Copy link

Hi there! Generally it does not install (since i've got npm updated: on debian8 - npm --version 5.02, on ubuntu lts - npm --version 5). Yes, i've tried to get it working on both linuxes. But before it worked fine. Don't know if it is about harp recent update or npm but generally issue resembles #606, and here what it says now (sudo npm install -g harp):

user@debian:~$ harp --version
fs.js:896
return binding.readdir(pathModule._makeLong(path), options.encoding);
^
Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/harp/node_modules/node-sass/vendor'
at Object.fs.readdirSync (fs.js:896:18)
at Object.getInstalledBinaries (/usr/local/lib/node_modules/harp/node_modules/node-sass/lib/extensions.js:124:13)
at foundBinariesList (/usr/local/lib/node_modules/harp/node_modules/node-sass/lib/errors.js:20:15)
at foundBinaries (/usr/local/lib/node_modules/harp/node_modules/node-sass/lib/errors.js:15:5)
at Object.module.exports.missingBinary (/usr/local/lib/node_modules/harp/node_modules/node-sass/lib/errors.js:45:5)
at module.exports (/usr/local/lib/node_modules/harp/node_modules/node-sass/lib/binding.js:15:30)
at Object. (/usr/local/lib/node_modules/harp/node_modules/node-sass/lib/index.js:14:35)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)

I'm not a node.js developer and a novice in harp, plse help

@Nadeeshyama
Copy link

I'm having problems with Harp on a more recent version of Node as well. Is this project abandoned?

@sintaxi
Copy link
Owner

sintaxi commented Jun 6, 2017

@Nadeeshyama there was a release last Friday https://github.com/sintaxi/harp/releases/tag/v0.24.0

@NetLancer thanks for reporting the issue. what version of node are you running?

@Nadeeshyama
Copy link

Thanks @sintaxi.

@bernardodsanderson
Copy link

bernardodsanderson commented Jun 13, 2017

I'm having the same issue, node v7.10.0

EDIT:
Upgraded to node v8.1.0. I was able to install, but when I try to run harp I get this error:

fs.js:909

return binding.readdir(pathModule._makeLong(path), options.encoding);

Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/harp/node_modules/node-sass/vendor'
    at Object.fs.readdirSync (fs.js:909:18)
    at Object.getInstalledBinaries (/usr/local/lib/node_modules/harp/node_modules/node-sass/lib/extensions.js:124:13)
    at foundBinariesList (/usr/local/lib/node_modules/harp/node_modules/node-sass/lib/errors.js:20:15)
    at foundBinaries (/usr/local/lib/node_modules/harp/node_modules/node-sass/lib/errors.js:15:5)
    at Object.module.exports.missingBinary (/usr/local/lib/node_modules/harp/node_modules/node-sass/lib/errors.js:45:5)
    at module.exports (/usr/local/lib/node_modules/harp/node_modules/node-sass/lib/binding.js:15:30)
    at Object.<anonymous> (/usr/local/lib/node_modules/harp/node_modules/node-sass/lib/index.js:14:35)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)

@thromera
Copy link

Bump, same issue over there

@Nadeeshyama
Copy link

Working for me now. I did a clean install.

@LuisP89
Copy link

LuisP89 commented Oct 13, 2017

First error: I can only install it if I execute "sudo su" before.
Second error: Same error as @bernardodsanderson

S.O. Ubuntu 16.04
node -v: v8.7.0
npm -v: 5.4.2

@hd719
Copy link

hd719 commented Dec 8, 2017

Hello all this worked for me, in your home directory run this command, basically I was getting this error because my root did not have the correct access rights (nodejs/node-gyp#454)

I am on node version 8.6.0

sudo npm install --unsafe-perm --verbose -g harp

@EskoCruz
Copy link

EskoCruz commented Feb 5, 2018

It is a permissions problem caused by using sudo.
Just sudo uninstall harp and reinstall it without sudo.

Uninstall harp:
sudo npm uninstall -g harp

Reinstall harp:
npm install -g harp

Now I can check if installed correctly by checking the version:
harp -V or harp version


macOS High Sierra 10.13.3
node -v: v9.5.0
npm -v: 5.6.0

@ghost
Copy link

ghost commented Feb 5, 2018 via email

@EskoCruz
Copy link

EskoCruz commented Feb 6, 2018

@oshybrid - Do you have libsass installed.
If you are using homebrew, run
brew install libsass

@ghost
Copy link

ghost commented Feb 7, 2018 via email

@GaragusoPD
Copy link

Same issue here, on ubuntu 16.04, node 9.8 and npm 5.8. What worked for me was this line:

sudo npm install --unsafe-perm --verbose -g harp

@schutzsmith
Copy link

Uninstalling as sudo and then reinstalling normally worked. Thanks @EskoCruz!

@JordanSchuetz
Copy link

Hello all this worked for me, in your home directory run this command, basically I was getting this error because my root did not have the correct access rights (nodejs/node-gyp#454)

I am on node version 8.6.0

sudo npm install --unsafe-perm --verbose -g harp

Dude thank you so much this worked for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests