You can create package.json with
package.json
npm init
which will ask you about basic facts about your projects, including license identifier.