Strapi error on installation - no generator called 'new' found

Hi! I’ve been trying to install Strapi CMS on a Glitch project but looks like there’s no installation made.
First I add the package from package.json file on the project:

*node v8.15.1, with pnpm*
*Installing...*
*Resolving: total 174, reused 133, downloaded 0*
*Resolving: total 364, reused 348, downloaded 0*
* WARN  strapi > strapi-bookshelf: bookshelf@0.9.5 requires a peer of knex@>=0.6.10 <0.12.0 but none was installed.*
*Packages: +331*
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
*Resolving: total 380, reused 380, downloaded 0*
*Resolving: total 380, reused 380, downloaded 0*
*Resolving: total 380, reused 380, downloaded 0*
*Resolving: total 380, reused 380, downloaded 0*
*Resolving: total 380, reused 380, downloaded 0, done*
* WARN  Cannot link bin "uuid" of "node-uuid" to "/app/node_modules/.bin". A package called "uuid" already has its bin linked.*
*dependencies:*
*+ strapi 2.0.2*
*Total install time: 9123ms*

and then on Glitch console strapi new cms --quickstart says error: No generator called new found..

I want to now if someone actually made it to install Strapi on Glitch or if someone can notice what I’m doing wrong.

Thanks in advance! :smiley:


MOD EDIT: formatting

Hey @martinballestero, welcome to the Glitch forum!

Can you share your project name or the contents of your package.json file so someone can take a closer look?

Alternatively, if you run pnpm i -v in your project’s console, can you tell us what the output looks like?

Hi Cori, thanks for correctly editing my post!

URL project: https://glitch.com/edit/#!/join/GUID

{
  "//1": "describes your app and its dependencies",
  "//2": "https://docs.npmjs.com/files/package.json",
  "//3": "updating this file will download and update your packages",
  "name": "hello-express",
  "version": "0.0.1",
  "description": "A simple Node app built on Express, instantly up and running.",
  "main": "server.js",
  "scripts": {
    "start": "node server.js"
  },
  "dependencies": {
    "express": "^4.16.4",
    "strapi": "^2.0.2"
  },
  "engines": {
    "node": "8.x"
  },
  "repository": {
    "url": "https://glitch.com/edit/#!/hello-express"
  },
  "license": "MIT",
  "keywords": [
    "node",
    "glitch",
    "express"
  ]
}

On running pnpm i -v:

A store server is running. All store manipulations are delegated to it.
Performing headless installation
Already up-to-date
 WARN  Cannot link bin "uuid" of "node-uuid" to "/rbd/pnpm-volume/19d6d262-0bae-404f-a134-292a699cb760/node_modules/.bin". A package called "uuid" already has its bin linked.

Thanks for the fast replay! :wave:t3:


MOD EDIT: formatting and remove join token

Hey @martinballestero, I was able to get this running by switching my Remix to use npm instead of pnpm. You can do this for your project by using the enable-npm command in your project’s console.

I’m not sure yet why it works with one and not the other, but I’ll see if I can make some time to dig into it more deeply.

Let me know if this helps or if you run into additional problems.

1 Like