Twin-Cities-Mutual-Aid / twin-cities-aid-distribution-locations

A webapp to coordinate aid and care in the Twin Cities.
43 stars 32 forks source link

snowpack: not found #243

Open jhsu802701 opened 4 years ago

jhsu802701 commented 4 years ago

So far, I am unable to set up the development environment. When I try to run "npm run dev" or "npm build", I get the following error:

sh: 1: snowpack: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! twin-cities-aid-distribution-locations@0.0.2 dev: `snowpack dev`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the twin-cities-aid-distribution-locations@0.0.2 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

What's the critical step that I'm missing? I expect "npm install" to install snowpack, but that's not the case.

amaxama commented 4 years ago

Did you get the environment variables set up as mentioned in this section of the readme? Also, make sure you have the correct version of node installed.

jhsu802701 commented 3 years ago

What's the standard setup for installing Node, NPM, etc? Do you use NVM, or do you install Node directly from source? I wonder if certain commands work in some setups but not others. (In the world of Ruby on Rails, some setups require typing "bundle exec" before many commands while others do not. I prefer to use Bash scripts that include "bundle exec". It's a case when it's better to have it and not need it than the other way around.)

amaxama commented 3 years ago

I typically use nvm I believe, but it's been a while...