Missing license in main package.json
See original GitHub issueDescription
yarn global add create-react-native-app
shows a warning
Expected Behavior
Should not show a warning
Observed Behavior
╭─~ yarn global add create-react-native-app
yarn global v0.27.5
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "create-react-native-app@1.0.0" with binaries:
- create-react-native-app
warning No license field
Done in 2.63s.
Environment
Please run these commands in the project folder and fill in their results:
node -v
: 8.2.1npm -v
: 4.6.1yarn --version
: 0.27.5
Also specify:
- Operating system: macOS Sierra
Reproducible Demo
Same as described above
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to have yarn not issue a warning for the license field?
Just make sure you are in the directory that contains the package.json file, then just yarn or npm install then serve it as...
Read more >package.json - npm Docs
If there is a .gitignore file, and .npmignore is missing, .gitignore 's contents ... package.json; README; LICENSE / LICENCE; The file in the...
Read more >GitHub repo with Apache License version 2 in package.json ...
For the Apache license, one requirement of the license is that recipients of the work receive a copy of the license: Redistribution.
Read more >How to publish a npm package in four steps
json how to build our module. Make sure you have this inside your package.json : ... "main": "dist/index.js" ...
Read more >package.json vs package-lock.json: Major Differences
To submit your npm get a version of package, you must include a name property, which must be unique. If you attempt to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For me, I resolved the issue with the fix here: https://github.com/yarnpkg/yarn/issues/3821#issuecomment-336895620. I had run yarn in my home folder at some point, and it was picking up on the empty
package.json
generated there. Removing that fixed it for me!At some point, you run
yarn add
command in your home directory, so check your home(~/
) and remove thepackage.json
andyarn.lock
files.