Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid NPM warnings on the create command #1504

Closed
vchimev opened this issue Feb 18, 2016 · 3 comments
Closed

Avoid NPM warnings on the create command #1504

vchimev opened this issue Feb 18, 2016 · 3 comments
Assignees
Labels
Milestone

Comments

@vchimev
Copy link

vchimev commented Feb 18, 2016

If you create a project with the CLI 1.6.0, you will get the npm warnings below due to the fact that npm install is called and the package.json file in the project directory is not fully valid.

From perspective of improving the getting started experience, it would be great to avoid these warnings. CC: @valentinstoychev, @rosen-vladimirov.

vchimevmac:test-apps vchimev$ tns create appTest
npm WARN package.json @ No description
npm WARN package.json @ No repository field.
npm WARN package.json @ No README data
npm WARN package.json @ No license field.
Project appTest was successfully created
@mehfuzh
Copy link

mehfuzh commented Mar 22, 2016

+1

I am getting similar warnings while try to install any plugin from npm repo.

Successfully removed plugin nativescript-sqlite for ios.

tns plugin add nativescript-sqlite

npm WARNpackage.json @ No description
npm WARNpackage.json @ No repository field.
npm WARNpackage.json @ No README data
npm WARNpackage.json @ No license field.
nativescript-sqlite@1.0.8 node_modules/nativescript-sqlite

Successfully installed plugin nativescript-sqlite.

@vchimev
Copy link
Author

vchimev commented Apr 22, 2016

Fixed by adding the needed entries in the package.json of the {N} project:

mcsofvchimev:appJS vchimev$ cat package.json 
{
    "description": "NativeScript Application",
    "license": "SEE LICENSE IN <your-license-filename>",
    "readme": "NativeScript Application",
    "repository": "<fill-your-repository-here>",
    "nativescript": {
        "id": "org.nativescript.appJS"
    },
    "dependencies": {
        "tns-core-modules": "2.0.0"
    }

@vchimev
Copy link
Author

vchimev commented Apr 22, 2016

@mehfuzh,
as the NativeScript plugins are npm packages, their package.json files need to be updated with the warned information in order to be avoided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants