question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing license in main package.json

See original GitHub issue

Description

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.1
  • npm -v: 4.6.1
  • yarn --version: 0.27.5

Also specify:

  1. Operating system: macOS Sierra

Reproducible Demo

Same as described above

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
noahtallencommented, Apr 24, 2018

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!

2reactions
YasinYAcommented, Jul 23, 2018

At some point, you run yarn add command in your home directory, so check your home(~/) and remove the package.json and yarn.lock files.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found