Comments (5)
Confirmed that 5c4c6ec fixes this. 👍
from npm-install.
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/162713942
The labels on this github issue will be updated when the story is started.
from npm-install.
@ericbottard thanks for pointing this out! This commit should hopefully fix your issue - Any chance you could give it a spin and tell us if this fixed it for you?
from npm-install.
I'm not 100% sure if this is related to the particular latest version of this buildpack that I'm using (61ccaae), but here is a weird error I'm getting (as part of an updated version of https://github.com/projectriff/riff-buildpack-group:
[builder] -----> NodeJS 11.4.0: Contributing to layer
[builder] Downloading from https://nodejs.org/dist/v11.4.0/node-v11.4.0-linux-x64.tar.gz
[builder] Verifying checksum
[builder] Expanding to /workspace/org.cloudfoundry.buildpacks.nodejs/node
[builder] Writing NODE_HOME to shared
[builder] Writing NODE_ENV to shared
[builder] Writing NODE_MODULES_CACHE to shared
[builder] Writing NODE_VERBOSE to shared
[builder] Writing NPM_CONFIG_PRODUCTION to shared
[builder] Writing NPM_CONFIG_LOGLEVEL to shared
[builder] Writing WEB_MEMORY to shared
[builder] Writing WEB_CONCURRENCY to shared
[builder] failed to write launch.toml: mkdir /tmp/plan.917064464/org.cloudfoundry.buildpacks.npm/plan.toml: not a directory
from npm-install.
Ran some additional tests from scratch and the above error is gone, please disregard.
However, I am indeed seeing this, which seems to imply that the issue this bug report is about is not fixed at 61ccaae:
[builder] -----> NPM Buildpack 0.0.3
[builder] -----> modules 98f1379ff60a0d3c6fa498326931498b75b6386773f59ac3e4e91b044710242a: Contributing to layer
[builder] Installing node_modules
[builder] up to date in 0.539s
[builder] found 0 vulnerabilities
[builder]
[builder] Cache verified and compressed (/workspace/app/npm-cache/_cacache):
[builder] Content verified: 0 (0 bytes)
[builder] Index entries: 0
[builder] Finished in 0.023s
[builder] unable to copy "/workspace/app/node_modules" to "/workspace/org.cloudfoundry.buildpacks.npm/modules": open /workspace/app/node_modules: no such file or directory
[builder] 2019/01/21 16:15:33 Error: failed to : exit status 103
ERROR: running builder in container: failed with status code: 7
For reference, here is the builder definition I'm using, where the relative path for the riff-buildpack is basically what can be found in this PR:
[[buildpacks]]
id = "io.projectriff.riff"
#uri = "https://storage.googleapis.com/projectriff/riff-buildpack/latest.tgz"
uri = "../riff-buildpack/artifactory/io/projectriff/riff/io.projectriff.riff/latest/"
[[buildpacks]]
id = "org.cloudfoundry.buildsystem"
uri = "https://repo.spring.io/libs-milestone-local/org/cloudfoundry/buildsystem/org.cloudfoundry.buildsystem/1.0.0-M3/org.cloudfoundry.buildsystem-1.0.0-M3.tgz"
[[buildpacks]]
id = "org.cloudfoundry.openjdk"
uri = "https://repo.spring.io/libs-milestone-local/org/cloudfoundry/openjdk/org.cloudfoundry.openjdk/1.0.0-M3/org.cloudfoundry.openjdk-1.0.0-M3.tgz"
[[buildpacks]]
id = "org.cloudfoundry.buildpacks.nodejs"
uri = "https://github.com/cloudfoundry/nodejs-cnb/releases/download/v0.0.2/nodejs-cnb.tgz"
[[buildpacks]]
id = "org.cloudfoundry.buildpacks.npm"
uri = "https://storage.googleapis.com/projectriff/npm-buildpack/npm-cnb-61ccaae9b60.tgz"
[[groups]]
[[groups.buildpacks]]
id = "org.cloudfoundry.openjdk"
version = "1.0.0-M3"
optional = true # Irrelevant as this buildpack's detect is a noop, but set for clarity
[[groups.buildpacks]]
id = "org.cloudfoundry.buildpacks.nodejs"
version = "0.0.2"
optional = true # Irrelevant as this buildpack's detect is a noop, but set for clarity
[[groups.buildpacks]]
id = "org.cloudfoundry.buildsystem"
version = "1.0.0-M3"
optional = true
[[groups.buildpacks]]
id = "org.cloudfoundry.buildpacks.npm"
version = "0.0.3"
optional = true
[[groups.buildpacks]]
id = "io.projectriff.riff"
version = "0.2.0-BUILD-SNAPSHOT"
Then, try to build this repo, like so:
cd /tmp
git clone https://github.com/projectriff-samples/node-square
cd node-square
touch riff.toml
pack build --no-pull --builder projectriff/builder --path . foo/bar
from npm-install.
Related Issues (20)
- Different run-image and build-image users causing runtime failure HOT 2
- Failure: Create Draft Release workflow HOT 1
- Chmod fails when running as non-root user HOT 3
- Support Jammy Jellyfish
- A project with cached dependencies fails to start on subsequent builds HOT 2
- Failure: Create Draft Release workflow HOT 52
- Restarting o Docker Container results in errors executing the symlink script.
- Enable Debug Logging
- Build fails when `npm-cache` is supplied beforehand
- Failure: Go get update workflow HOT 3
- /tmp/node_modules directory is missing during run time HOT 5
- Project with a linked module fails with "Module not found" HOT 1
- build fails when using npm workspaces and `node_modules` is required during build and launch HOT 6
- Failure: Approve bot PR workflow HOT 1
- Locally installed packages not loading on container start
- Failure: Update GitHub config workflow
- Anchore Go Library - Vulnerabilities
- npm install is not installing devDependencies HOT 2
- Always overriding NODE_ENV with development HOT 5
- Failure: Publish draft releases
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npm-install.