Unable to install new npm packages


#1

The “add package” functionality doesn’t seem to be working - no packages are returned from the search. Seems like it was working earlier today, so not sure if it is related to the change to Glitch…


#2

Thanks for pointing this out genestd, we’ll fix this asap.

In the meantime, you can still add new npm packages to package.json manually. Just add a new entry in the "dependencies" object. It might look something like this:

"dependencies": {
  "express": "^4.14.0"
},

To add, for example, the package body-parser, you can write:

"dependencies": {
  "express": "^4.14.0",
  "body-parser": "*"
},

where "*" means “the latest version”. If you want to specify the version you want (e.g.: 1.15.2) you can write:

"dependencies": {
  "express": "^4.14.0",
  "body-parser": "^1.15.2"
},

I hope this helps!