NPM List errors for missing dependencies of uninstall optional dependencies2019 Community Moderator ElectionNPM: Never install nested optional dependencies for npm packageHow to uninstall npm modules in node js?npm throws error without sudoWhat's the difference between dependencies, devDependencies and peerDependencies in npm package.json file?What is the --save option for npm install?npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14warning when executing npm installHow to install ionic - I get “npm ERR! path” and other errorsNPM errors while installingerror while installing angular/cli using npmissue on setting angular 4 on windows machine facing this error

Is it possible to upcast ritual spells?

Gantt Chart like rectangles with log scale

Is it true that good novels will automatically sell themselves on Amazon (and so on) and there is no need for one to waste time promoting?

How to create the Curved texte?

If curse and magic is two sides of the same coin, why the former is forbidden?

Are there other languages, besides English, where the indefinite (or definite) article varies based on sound?

How could a scammer know the apps on my phone / iTunes account?

Look at your watch and tell me what time is it. vs Look at your watch and tell me what time it is

Interplanetary conflict, some disease destroys the ability to understand or appreciate music

A sequence that has integer values for prime indexes only:

Python if-else code style for reduced code for rounding floats

My Graph Theory Students

Why did it take so long to abandon sail after steamships were demonstrated?

In a future war, an old lady is trying to raise a boy but one of the weapons has made everyone deaf

Did Ender ever learn that he killed Stilson and/or Bonzo?

Unexpected result from ArcLength

Welcoming 2019 Pi day: How to draw the letter π?

How Could an Airship Be Repaired Mid-Flight

How to make healing in an exploration game interesting

How to deal with a cynical class?

Why do Australian milk farmers need to protest supermarkets' milk price?

compactness of a set where am I going wrong

Is there a data structure that only stores hash codes and not the actual objects?

Sailing the cryptic seas



NPM List errors for missing dependencies of uninstall optional dependencies



2019 Community Moderator ElectionNPM: Never install nested optional dependencies for npm packageHow to uninstall npm modules in node js?npm throws error without sudoWhat's the difference between dependencies, devDependencies and peerDependencies in npm package.json file?What is the --save option for npm install?npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14warning when executing npm installHow to install ionic - I get “npm ERR! path” and other errorsNPM errors while installingerror while installing angular/cli using npmissue on setting angular 4 on windows machine facing this error










0















I have an npm project which needs to build on both Mac and Windows build servers. (This is for an Ionic mobile app, but I don't think that is relevant to my issue.) One of our dependencies has a dependency on fsevents, which is skipped by npm install on Windows machines. However, if I run npm list --depth=0, it is returning errors about missing dependencies of optional dependencies.



Minimal package.json to reproduce:




"dependencies":
"@ionic/app-scripts": "^3.2.0"




Then I run npm install:



C:tempnodetest>npm install
...
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted "os":"darwin","arch":"any" (current: "os":"win32","arch":"x64")


Notice that it skips fsevents because it does not support Windows OS.



Now I run npm list:



C:tempnodetest>npm list --depth=0
C:tempnodetest
`-- @ionic/app-scripts@3.2.3

npm ERR! missing: mkdirp@0.5.1, required by node-pre-gyp@0.10.3
npm ERR! missing: minimist@0.0.8, required by mkdirp@0.5.1
npm ERR! missing: minimatch@3.0.4, required by ignore-walk@3.0.1
... (many other errors like this)


The errors are all due to dependencies of the uninstalled optional dependency. Is there any way to suppress these errors? I'm not seeing anything in the npm list documentation.



My ultimate goal is to verify that all dependencies are installed, and fail the build otherwise. I'm currently using npm list to do that. Is there a better way to do this? We don't want to run npm install or npm update on every build, because we got many surprise bugs in the past when we did that.



I've also tried npm list --depth=0 --no-optional (based on this question), but it doesn't look like --no-optional command is relevant to npm list.










share|improve this question


























    0















    I have an npm project which needs to build on both Mac and Windows build servers. (This is for an Ionic mobile app, but I don't think that is relevant to my issue.) One of our dependencies has a dependency on fsevents, which is skipped by npm install on Windows machines. However, if I run npm list --depth=0, it is returning errors about missing dependencies of optional dependencies.



    Minimal package.json to reproduce:




    "dependencies":
    "@ionic/app-scripts": "^3.2.0"




    Then I run npm install:



    C:tempnodetest>npm install
    ...
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modulesfsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted "os":"darwin","arch":"any" (current: "os":"win32","arch":"x64")


    Notice that it skips fsevents because it does not support Windows OS.



    Now I run npm list:



    C:tempnodetest>npm list --depth=0
    C:tempnodetest
    `-- @ionic/app-scripts@3.2.3

    npm ERR! missing: mkdirp@0.5.1, required by node-pre-gyp@0.10.3
    npm ERR! missing: minimist@0.0.8, required by mkdirp@0.5.1
    npm ERR! missing: minimatch@3.0.4, required by ignore-walk@3.0.1
    ... (many other errors like this)


    The errors are all due to dependencies of the uninstalled optional dependency. Is there any way to suppress these errors? I'm not seeing anything in the npm list documentation.



    My ultimate goal is to verify that all dependencies are installed, and fail the build otherwise. I'm currently using npm list to do that. Is there a better way to do this? We don't want to run npm install or npm update on every build, because we got many surprise bugs in the past when we did that.



    I've also tried npm list --depth=0 --no-optional (based on this question), but it doesn't look like --no-optional command is relevant to npm list.










    share|improve this question
























      0












      0








      0








      I have an npm project which needs to build on both Mac and Windows build servers. (This is for an Ionic mobile app, but I don't think that is relevant to my issue.) One of our dependencies has a dependency on fsevents, which is skipped by npm install on Windows machines. However, if I run npm list --depth=0, it is returning errors about missing dependencies of optional dependencies.



      Minimal package.json to reproduce:




      "dependencies":
      "@ionic/app-scripts": "^3.2.0"




      Then I run npm install:



      C:tempnodetest>npm install
      ...
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modulesfsevents):
      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted "os":"darwin","arch":"any" (current: "os":"win32","arch":"x64")


      Notice that it skips fsevents because it does not support Windows OS.



      Now I run npm list:



      C:tempnodetest>npm list --depth=0
      C:tempnodetest
      `-- @ionic/app-scripts@3.2.3

      npm ERR! missing: mkdirp@0.5.1, required by node-pre-gyp@0.10.3
      npm ERR! missing: minimist@0.0.8, required by mkdirp@0.5.1
      npm ERR! missing: minimatch@3.0.4, required by ignore-walk@3.0.1
      ... (many other errors like this)


      The errors are all due to dependencies of the uninstalled optional dependency. Is there any way to suppress these errors? I'm not seeing anything in the npm list documentation.



      My ultimate goal is to verify that all dependencies are installed, and fail the build otherwise. I'm currently using npm list to do that. Is there a better way to do this? We don't want to run npm install or npm update on every build, because we got many surprise bugs in the past when we did that.



      I've also tried npm list --depth=0 --no-optional (based on this question), but it doesn't look like --no-optional command is relevant to npm list.










      share|improve this question














      I have an npm project which needs to build on both Mac and Windows build servers. (This is for an Ionic mobile app, but I don't think that is relevant to my issue.) One of our dependencies has a dependency on fsevents, which is skipped by npm install on Windows machines. However, if I run npm list --depth=0, it is returning errors about missing dependencies of optional dependencies.



      Minimal package.json to reproduce:




      "dependencies":
      "@ionic/app-scripts": "^3.2.0"




      Then I run npm install:



      C:tempnodetest>npm install
      ...
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modulesfsevents):
      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted "os":"darwin","arch":"any" (current: "os":"win32","arch":"x64")


      Notice that it skips fsevents because it does not support Windows OS.



      Now I run npm list:



      C:tempnodetest>npm list --depth=0
      C:tempnodetest
      `-- @ionic/app-scripts@3.2.3

      npm ERR! missing: mkdirp@0.5.1, required by node-pre-gyp@0.10.3
      npm ERR! missing: minimist@0.0.8, required by mkdirp@0.5.1
      npm ERR! missing: minimatch@3.0.4, required by ignore-walk@3.0.1
      ... (many other errors like this)


      The errors are all due to dependencies of the uninstalled optional dependency. Is there any way to suppress these errors? I'm not seeing anything in the npm list documentation.



      My ultimate goal is to verify that all dependencies are installed, and fail the build otherwise. I'm currently using npm list to do that. Is there a better way to do this? We don't want to run npm install or npm update on every build, because we got many surprise bugs in the past when we did that.



      I've also tried npm list --depth=0 --no-optional (based on this question), but it doesn't look like --no-optional command is relevant to npm list.







      node.js npm






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 6 at 19:52









      KipKip

      67k78207243




      67k78207243






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55031182%2fnpm-list-errors-for-missing-dependencies-of-uninstall-optional-dependencies%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55031182%2fnpm-list-errors-for-missing-dependencies-of-uninstall-optional-dependencies%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          1928 у кіно

          Захаров Федір Захарович

          Ель Греко