Closed robjtede closed 5 years ago
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.
@sintaxi yeah my bad, I hit submit before entering the steps
Awesome. Thank you.
I also made a mess of the steps. Fixed now.
This is motivated by not wanting to have to install harp globally.
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.
@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>
.
Steps for reproduction:
This effect can also be seen when using an npm script to compile instead of npx.