There are many ingenious attempts to outwit them, but most fail. Hanging food in a sack on a line under an inverted can sometimes works. Keep shelters and surrounding ground clean. While at shelters, use the designated washpit for cleaning dishes. Carry out all litter.
Porcupines are also interested in hikers' garbage.
Don't give them reasons to drop by. Take care of your waste. Hang your boots at night or risk losing them to a gnawing porcupine attracted to the salt. Black Bear, Moose and More Black bear, moose, bobcat and deer are around you, but you'll rarely see them. There are ample moose tracks and droppings along the length of the trail.