Can I get node in a project where I originally started from the webpage template?

My project is like this right now:

app@accurate-bag:~ 00:10 
$ pnpm --help
/usr/bin/env: ‘node’: No such file or directory

app@accurate-bag:~ 00:11 
$ npm --help
-su: npm: command not found

Hey @wh0!

It is always recommended to add packages you need to install to your package.json file, rather than installing from the command line.
If the problem persists, remix the project and try again.

Happy Glitching!

1 Like

Hey @wh0, Glitch determines what sort of project you’re running based on some signal files; if you place a file called package.json in your project it will magically become a Node project. If that package.json file is a valid one Gitch will use pnpm to install the listed dependencies.

Hope this helps!

thanks, that’ll help. always happy to have declarative dependency management too (:

1 Like