boneskull / create-yo

Use any Yeoman generator with "npm init"
Other
45 stars 4 forks source link

Not working for scoped packages #3

Closed seangenabe closed 5 years ago

seangenabe commented 5 years ago

The package doesn't work when using scoped packages. When it sees a slash, it thinks it's a GitHub URL.

boneskull commented 5 years ago

can you please provide an example?

kirillgroshkov commented 5 years ago

We need it too! Example:

npm init yo @naturalcycles/nodejs-lib

boneskull commented 5 years ago

thanks, I'll look into this

boneskull commented 5 years ago

:tada: This issue has been resolved in version 1.1.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

kirillgroshkov commented 5 years ago

Oh nice, I'll test it out, thanks!

kirillgroshkov commented 5 years ago

I tried it and it didn't work. Here's the log:

npm init yo @naturalcycles/generator-nodejs-lib                                                    9.12 Dur
npx: installed 15 in 3.499s
Error @naturalcycles/generator-nodejs-lib 

You don't seem to have a generator with the name “@naturalcycles/generator-nodejs-lib” installed.
But help is on the way:

You can see available generators via npm search yeoman-generator or via http://yeoman.io/generators/. 
Install them with npm install @naturalcycles/generator-generator-nodejs-lib.

To see all your installed generators run yo without any arguments. Adding the --help option will also show subgenerators. 

If yo cannot find the generator, run yo doctor to troubleshoot your system.
✔ create-yo ok!
npm --version
6.10.2