Closed masterj63 closed 4 days ago
Thanks for pointing this out. npm init -y <new-package-name>
no longer works the same way.
The command npm init -y <new-package-name>
is incorrect and causes npm to search for a package named create-
Correct Usage
Creating a New Directory for the Package If you want to create a new directory for your package and initialize it there, you should first create the directory and then run npm init inside it. If you want to use package defaults, include the -y flag:
mkdir influx-node-app
cd influx-node-app
npm init -y
You can also do something like the following to configure the package:
npm init -y; npm pkg set type="module"
I follow the first step of the instruction but receive error from npm:
Relevant URLs