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

compile hangs and silently fails when harp is installed in local project #624

Closed
robjtede opened this issue Jan 20, 2018 · 7 comments
Closed

Comments

@robjtede
Copy link

robjtede commented Jan 20, 2018

Steps for reproduction:

mkdir proj
cd proj
harp init
npm install --save harp
harp compile OR npx harp compile

This effect can also be seen when using an npm script to compile instead of npx.

@sintaxi
Copy link
Owner

sintaxi commented Jan 20, 2018

I appreciate you taking the time to open a ticket though not much useful information being provided here to help get this fixed. Steps to reproduce? Version of harp? OS? Anything info you provide will help the likelihood and speed this issue can get resolved. Thanks.

@robjtede
Copy link
Author

robjtede commented Jan 20, 2018

@sintaxi yeah my bad, I hit submit before entering the steps

@sintaxi
Copy link
Owner

sintaxi commented Jan 20, 2018

Awesome. Thank you.

@robjtede
Copy link
Author

I also made a mess of the steps. Fixed now.

@robjtede
Copy link
Author

This is motivated by not wanting to have to install harp globally.

@robjtede
Copy link
Author

robjtede commented Jan 26, 2018

I've had to use the --unsafe-perms flag on npm install to install harp globally on my production server. (Due to dependence on node-sass.) I'd really love to see this package runnable in a local environment.

@mzgajner
Copy link

mzgajner commented Jun 15, 2018

@robjtede the issue here is actually the fact just running harp compile tries to go through all the files in your project folder and compile them. That includes node_modules, which is huge and the process hangs.

You can track #275 and #312 to see if there will be a feature added to easily ignore this folder. Until then, there's a relatively simple workaround - move all your project files (except package.json and others unrelated to harp) to a folder (e.g. source) and call harp compile source target.

This allowed me to install harp locally without any issues - the only change is that I now call it using node_modules/.bin/harp <whatever>.

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

4 participants