Skip to content

Fix for npm permission error#830

Merged
colincasey merged 5 commits intomainfrom
fix_issue_800
May 23, 2024
Merged

Fix for npm permission error#830
colincasey merged 5 commits intomainfrom
fix_issue_800

Conversation

@colincasey
Copy link
Copy Markdown
Contributor

@colincasey colincasey commented May 3, 2024

Registers a launch time layer that sets the following environment variables:

Closes #800

@colincasey colincasey self-assigned this May 3, 2024
@colincasey colincasey requested review from a team and joshwlewis as code owners May 3, 2024 20:53
Comment thread buildpacks/nodejs-npm-install/src/main.rs Outdated
Registers an exec.d program that:

- configures the npm `cache` to write to a temporary directory
- disables the npm `update-notifier`
Comment thread buildpacks/nodejs-npm-install/src/bin/npm_runtime_config.rs Outdated
Comment thread buildpacks/nodejs-npm-install/src/bin/npm_runtime_config.rs Outdated
@colincasey colincasey requested review from edmorley and joshwlewis May 10, 2024 19:52
Copy link
Copy Markdown
Member

@edmorley edmorley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The env var approach looks good to me :-)

Leaving the main review to Josh.

Comment thread buildpacks/nodejs-npm-install/src/main.rs
* main:
  Prepare release v3.2.2 (#848)
  Update Inventory for heroku/nodejs (#846)
  Fix failing integration test (#847)
  Update Node functions runtime to 0.14.5 (#845)
  Update Inventory for heroku/nodejs-npm-engine (#842)
  Update Inventory for heroku/nodejs (#844)
  Fix Node.js inventory automation (#843)
  Adding Heroku-24 to CI test matrix (#841)
  Node.js inventory updates with Keep a Changelog format (#840)
  Fixed the changelog to follow the Keep a Changelog spec properly (#839)

# Conflicts:
#	buildpacks/nodejs-npm-install/CHANGELOG.md
#	buildpacks/nodejs-npm-install/tests/integration_test.rs
@colincasey colincasey merged commit 7f67b1e into main May 23, 2024
@colincasey colincasey deleted the fix_issue_800 branch May 23, 2024 16:44
jplabadessa pushed a commit to jplabadessa/nodejs that referenced this pull request Feb 28, 2025
## heroku/nodejs

### Changed

- Updated `heroku/nodejs-corepack` to `3.2.3`.
- Updated `heroku/nodejs-engine` to `3.2.3`.
- Updated `heroku/nodejs-npm-engine` to `3.2.3`.
- Updated `heroku/nodejs-npm-install` to `3.2.3`.
- Updated `heroku/nodejs-pnpm-engine` to `3.2.3`.
- Updated `heroku/nodejs-pnpm-install` to `3.2.3`.
- Updated `heroku/nodejs-yarn` to `3.2.3`.

## heroku/nodejs-corepack

- No changes.

## heroku/nodejs-engine

### Added

- 20.14.0 (linux-amd64, linux-arm64)

## heroku/nodejs-function

### Changed

- Updated `heroku/nodejs-engine` to `3.2.3`.
- Updated `heroku/nodejs-function-invoker` to `3.2.3`.
- Updated `heroku/nodejs-npm` to `3.2.3`.

## heroku/nodejs-function-invoker

- No changes.

## heroku/nodejs-npm

- No changes.

## heroku/nodejs-npm-engine

- No changes.

## heroku/nodejs-npm-install

- Fix for npm permission error when executing without root
  permissions ([#830](heroku/buildpacks-nodejs#830))

## heroku/nodejs-pnpm-engine

- No changes.

## heroku/nodejs-pnpm-install

- No changes.

## heroku/nodejs-yarn

- No changes.

Co-authored-by: heroku-linguist[bot] <136119646+heroku-linguist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error: EACCES: permission denied, mkdir '/layers/heroku_nodejs-npm-install' due to NPM writing to /layers at runtime

3 participants