Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm publish doesn't change npm create templates #27

Closed
akabekobeko opened this issue Apr 6, 2021 · 4 comments
Closed

npm publish doesn't change npm create templates #27

akabekobeko opened this issue Apr 6, 2021 · 4 comments

Comments

@akabekobeko
Copy link

I updated the templates/ with create-book using create-create-app and then npm pulish, but the one generated by running npm create book is still the old templates.

Is there anything else need to do to update the image run by npm create other than npm publish?

README.md explains that npm publish is running.

3. Publish package to npm

Run npm publish or yarn publish to publish your create-greet app to npm.

When I installed the published one with npm i create-book, npm was up to date.

@uetchy
Copy link
Owner

uetchy commented Apr 6, 2021

quick search resulted in this issue:
npm/cli#2395

looks like that behavior has been fixed in v7.8.0, which was published just 5 days ago.
npm/cli@37613e4

Try updating npm and see the problem persists

@akabekobeko
Copy link
Author

Thank you. When I checked the version of npm in the environment where npm publish was done, it was 7.7.6.

Let's update npm and then check.

@akabekobeko
Copy link
Author

I updated the version of create-book to npm publish in an environment where npm was updated to 7.8.0.

$ npm -v
7.8.0

And when I ran npm create book sample in the same environment, the old templates/default was installed. After that, when I ran the following, the published create-book was up to date.

$ cd sample
$ npm i create-book

So it doesn't seem to be fixed just by updating npm 7.8.0. Since it is a problem of npm cli, we will observe it at a fixed point.

@akabekobeko
Copy link
Author

It seems to be a problem in my environment (npx cache?), So close it. Thank you for your research and comments!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants