Can not use NodeJS 8

Bug #1755524 reported by Adam Kuhn on 2018-03-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
High
Sergio Schvezov

Bug Description

#### Issue description
When declaring a node version 8.X.X, snapcraft builds fail with a variety of errors.

#### Steps to reproduce the issue

1. Explicitly point 'node-engine' to 8.10.0
2. run 'snapcraft'

```
name: hello-node-snap
version: "1.0.2"
summary: A simple hello world command
description: hello world
confinement: strict

apps:
  hello-node-snap:
    command: bin/hello-node-snap
    plugs: [network]

parts:
  hello-node-snap:
    plugin: nodejs
    node-engine: 8.10.0
    node-packages:
      - hello-node-snap
```

#### What's the expected result?

I've received the following errors:
[Errno 2] No such file or directory: mysnapdirectory/prime/bin/hello-node-snap
OSError: [Errno 26] Text file busy: mysnapdirectory/parts/hello-node-snap/install/bin/node

#### Additional details

It looks as if npm is creating a package.json lockfile and silently failing.

Sergio Schvezov (sergiusens) wrote :

Thanks for the report

Changed in snapcraft:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Sergio Schvezov (sergiusens)
Sergio Schvezov (sergiusens) wrote :

Hi there, I am not seeing this behavior[1]

Mind telling me a bit more about your execution environment? Is this docker? is this docker on Mac? Is this inside a VM and lxd, is the lxd storage dir, zfs, btrfs, other?

[1] https://paste.ubuntu.com/p/njQfVygJqW/

Changed in snapcraft:
status: Triaged → Incomplete
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers