The gulp plugin installs gulp globally instead of locally to the snap's part
Metadata
Current evaluation
Fixed in canonical/snapcraft#782 via commit e68413299, changing the Gulp plugin to install npm packages into the snap part instead of globally.
Resolution: closed resolved
Reason: PR canonical/snapcraft#782 was merged as commit e68413299, setting a snap-local npm prefix so the Gulp executable is available within the part.
Evaluated by: mr-cal-bot
No scores available.
Issue body
The gulp plugin npm installs globally which defaults to a /usr/local/bin install instead of something relative to the snap part.
When a part then tries to e.g. 'gulp install' it expects to find gulp in the parts npm/bin folder which is not the case.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed in canonical/snapcraft#782 via commit e68413299, changing the Gulp plugin to install npm packages into the snap part instead of globally. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed the Gulp plugin’s npm prefix to install into the snap part rather than globally. PR snapcraft#782 merged as commit e68413299. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The gulp plugin incorrectly installs gulp globally to /usr/local/bin instead of locally within the snap part, breaking subsequent commands. Issue remains unresolved. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. The gulp plugin installs gulp globally instead of locally to the snap part, causing execution failures. No fix or resolution was provided. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned due to inactivity. The gulp plugin continues to install globally instead of locally within snap parts, leaving the path resolution issue unfixed. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/snapcraft#782
(confidence 100%)
The merged PR corrected the Gulp plugin's npm install prefix and references LP #1621921.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #782 Fix gulp plugin's npm install prefix | snapcraft | merged | Merged as e68413299 via #782, fixing the Gulp plugin to use a snap-local npm prefix instead of installing globally in /usr/local/bin (LP: #1621921). | |
| #1575880 nodejs plugin needs to be able to build using gulpfiles | snapcraft (launchpad) | closed | Resolved by merged PR #563 (commit 00079ee32, "New plugin: gulp"), which added a standalone gulp plugin instead of extending nodejs. Shipped in snapcraft 2.12 to xenial; verified by ~elopio using integration_tests/snaps/simple-gulp. |