Closed akabekobeko closed 3 years ago
quick search resulted in this issue: https://github.com/npm/cli/issues/2395
looks like that behavior has been fixed in v7.8.0, which was published just 5 days ago. https://github.com/npm/cli/commit/37613e4e686e4891210acaabc9c23f41456eda3f
Try updating npm and see the problem persists
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.
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.
It seems to be a problem in my environment (npx cache?), So close it. Thank you for your research and comments!
I updated the
templates/
with create-book usingcreate-create-app
and thennpm pulish
, but the one generated by runningnpm create book
is still the old templates.Is there anything else need to do to update the image run by
npm create
other thannpm publish
?README.md
explains thatnpm publish
is running.When I installed the published one with
npm i create-book
, npm was up to date.