Skip to content

Looks like some modules are not installed #337

Closed

Description

@Grawl

pnpm version:

$ pnpm -v
0.29.0

Code to reproduce the issue:

$ pnpm i
$ gulp

Expected behavior:

With regular npm i my gulp build is passed.

Actual behavior:

gulp build is errored because of imagemin-jpegtran from gulp-imagemin is not found

Additional information:

  • node -v prints: v6.2.2
  • OS X

$ gulp output, gulpfile.js, package.json, $ pnpm i output: https://gist.github.com/Grawl/cd46b291fd05591e110377ca76494619

Activity

  1. iamstarkov commented on Aug 31, 2016

    @iamstarkov
    Contributor

    jpegtran-bin is fine, though smth wrong with archive-type

  2. iamstarkov commented on Aug 31, 2016

    @iamstarkov
    Contributor

    and smth wrong with globby

     globby ^5.0.0 ERROR ✗ /wp-content/themes/crossbar/node_modules/.tmp/1472653081896_bin-build@^2.0.0/_/index.js:3:19)
    

    path for this module seems wrong

  3. iamstarkov commented on Aug 31, 2016

    @iamstarkov
    Contributor

    though i cant see, how you gulp build is runned after npm install

  4. iamstarkov commented on Aug 31, 2016

    @iamstarkov
    Contributor

    do you have this project as oss project on github?

  5. Grawl commented on Aug 31, 2016

    @Grawl
    Author

    no, I can't share this project. it's not open source. we develop this on own git server.

  6. iamstarkov commented on Aug 31, 2016

    @iamstarkov
    Contributor

    it will be hard to actually reproduce your gulp build failure

  7. iamstarkov commented on Aug 31, 2016

    @iamstarkov
    Contributor
  8. Grawl commented on Aug 31, 2016

    @Grawl
    Author

    I think we can try to use any gulp generator from Yeoman, like yeogurt, and have the same problems: https://gist.github.com/Grawl/4404df96380856a106fc70787d3e1a6f

  9. iamstarkov commented on Sep 1, 2016

    @iamstarkov
    Contributor

    found failing dep:

      "devDependencies": {
        "gulp-imagemin": "^3.0.1"
      }
    
  10. iamstarkov commented on Sep 1, 2016

    @iamstarkov
    Contributor
    1. everytime fail begins with problems on postinstall step
    2. issue is not permanent, its kind of floating around binaries being not able to compiled
  11. iamstarkov commented on Sep 1, 2016

    @iamstarkov
    Contributor

    though, all failing deps are optional, so pnpm is fine with them not being compiled

  12. iamstarkov commented on Sep 1, 2016

    @iamstarkov
    Contributor

    i was not able to pipe pnpm install log to the file =(

  13. iamstarkov commented on Sep 1, 2016

    @iamstarkov
    Contributor

    @andreypopp @zkochan @rstacruz feel free to investigate further from here

    git clone https://github.com/iamstarkov/pnpm-issue-337
    cd pnpm-issue-337
    pnpm i
    

    or

    mkdir pnpm-issue-337
    cd pnpm-issue-337
    npm init -y
    pnpm i -S gulp-imagemin@^3.0.1
    
  14. Grawl commented on Sep 1, 2016

    @Grawl
    Author

    @iamstarkov

    i was not able to pipe pnpm install log to the file =(

    I've just copied it right from Terminal with my mouse 😉

  15. zkochan commented on Sep 2, 2016

    @zkochan
    Member

    I suggest to continue investigating this once we merge and publish Create pnpm-debug.log file on fail

  16. 1 remaining item

  17. zkochan commented on Sep 2, 2016

    @zkochan
    Member

    Here's the debug info: https://gist.githubusercontent.com/zkochan/e42a33e54192b38d9184575c5d1e4aee/raw/8870d135902473eb4fd1dcbfe8b3dfce83e2691e/ppm-debug.yaml

    Seems like archive-type is not installed yet, when the postinstall script is being executed.

    I also noticed that npm doesn't have these errors and it runs postinstalls after all the deps were downloaded... pnpm seems to be more greedy, it runs postinstall as soon as possible.

  18. zkochan commented on Sep 2, 2016

    @zkochan
    Member

    Indeed, after moving the postinstall scripts execution after installation, the package created by @iamstarkov always installs with no issues. You can try the fix on branch issue337. (NOTE: my fast dirty fix has broken the skipping of optional dependencies, but that'll be easy to fix, if this is really the solution)

  19. zkochan commented on Sep 3, 2016

    @zkochan
    Member

    @Grawl I have published what I think is the fix

    Please install pnpm from the github branch and try if it works

    npm i -g rstacruz/pnpm#issue337

  20. Grawl commented on Sep 4, 2016

    @Grawl
    Author

    @zkochan looks like it fixed now. all modules are installed without errors, gulp works fine.

  21. added 4 commits that reference this issue on Sep 4, 2016
    f68fd1f
    e3e14de
    74bd8db
    862e359
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions