Giter Club home page Giter Club logo

Comments (5)

ericbottard avatar ericbottard commented on September 14, 2024 1

Confirmed that 5c4c6ec fixes this. 👍

from npm-install.

cf-gitbot avatar cf-gitbot commented on September 14, 2024

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.

kardolus avatar kardolus commented on September 14, 2024

@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.

ericbottard avatar ericbottard commented on September 14, 2024

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.

ericbottard avatar ericbottard commented on September 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.