• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

`npm ci` instead of `npm install`

Scheduled Pinned Locked Moved Solved Feature Requests
9 Posts 4 Posters 1.5k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    bugsounet Banned @KristjanESPERANTO
    last edited by bugsounet Jan 15, 2022, 12:49 PM Jan 15, 2022, 12:47 PM

    @KristjanESPERANTO :

    Hi, many developer don’t know what is package.json file
    in your case, this command need package-lock.json (auto generated by npm install or by developer)
    Many, many modules are not maintened, i don’t think it’s very usable (maybe module need some new system tools before this command)

    K 1 Reply Last reply Jan 15, 2022, 3:00 PM Reply Quote 0
    • K Offline
      KristjanESPERANTO Module Developer @bugsounet
      last edited by Jan 15, 2022, 3:00 PM

      many developer don’t know what is package.json file

      Isn’t that one of the first things you learn when you start using npm? :-)

      this command need package-lock.json

      Yes, of course. And the core system has the package-lock.json. I was not talking about modules. Sorry if that was not clear.

      S 1 Reply Last reply Jan 15, 2022, 3:35 PM Reply Quote 0
      • S Offline
        sdetweil @KristjanESPERANTO
        last edited by Jan 15, 2022, 3:35 PM

        @kristjanesperanto said in `npm ci` instead of `npm install`:

        Isn’t that one of the first things you learn when you start using npm?

        no. I hadn’t heard about packages on til at least a year after I had written my first module.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • K Online
          karsten13 @KristjanESPERANTO
          last edited by Jan 15, 2022, 8:01 PM

          @kristjanesperanto

          I used npm ci for a while. Because the package-lock.json format changed meanwhile I had problems with npm ci --no-optional with node 14, so I switched back to npm install.

          But main point is you don’t get needed updates, e.g. we had in October an electron update because of invalid certs, in this case you had to use npm install.

          As this is no direct part of the code we could update the documentation and explain both variants but I would prefer npm install as the default variant. Everyone who knows the difference can use what he wants.

          S 1 Reply Last reply Jan 15, 2022, 8:08 PM Reply Quote 0
          • S Offline
            sdetweil @karsten13
            last edited by sdetweil Jan 15, 2022, 8:09 PM Jan 15, 2022, 8:08 PM

            @karsten13 I use npm install in the installer and updater for all these reasons

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            K 1 Reply Last reply Jan 15, 2022, 8:12 PM Reply Quote 0
            • K Online
              karsten13 @sdetweil
              last edited by Jan 15, 2022, 8:12 PM

              @sdetweil

              yes, and AFAIK you are using npm install --only=prod. This is may a thing to be mentioned in the docs because 99% of the users don’t need the dev dependencies …

              S 1 Reply Last reply Jan 15, 2022, 8:17 PM Reply Quote 1
              • S Offline
                sdetweil @karsten13
                last edited by Jan 15, 2022, 8:17 PM

                @karsten13 right

                but that is not ci

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • K Offline
                  KristjanESPERANTO Module Developer
                  last edited by Jan 16, 2022, 11:44 AM

                  Okay, thanks for your opinions. I’ll use npm ci for a while with my instances to gain more experience.

                  I mark this thread as solved for now. Further opinions are of course welcome.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  1 / 1
                  • First post
                    6/9
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy