Is there a way to see what happens during prime?

I’m trying to compile my first snap, but something is wrong and I don’t see any helpful information.

this is my output for running sudo snapcraft prime

Pulling tempguard 
Downloading 'node-v6.14.2-linux-x64.tar.gz'[==========================================] 100%
npm --cache-min=Infinity install
npm WARN install:leven@1.0.2 EROFS: read-only file system, symlink '../leven/cli.js' -> '/media/sf_shared/rigado-node-hello-world/parts/tempguard/src/node_modules/.bin/leven'
npm WARN install:rc@1.2.6 EROFS: read-only file system, symlink '../rc/cli.js' -> '/media/sf_shared/rigado-node-hello-world/parts/tempguard/src/node_modules/.bin/rc'
npm WARN install:sshpk@1.14.1 EROFS: read-only file system, symlink '../sshpk/bin/sshpk-sign' -> '/media/sf_shared/rigado-node-hello-world/parts/tempguard/src/node_modules/.bin/sshpk-sign'
npm WARN install:uuid@3.2.1 EROFS: read-only file system, symlink '../uuid/bin/uuid' -> '/media/sf_shared/rigado-node-hello-world/parts/tempguard/src/node_modules/.bin/uuid'
tempguard@1.0.0 /media/sf_shared/rigado-node-hello-world/parts/tempguard/src
└── noble@1.9.1 

npm WARN optional Skipping failed optional dependency /noble/xpc-connection:
npm WARN notsup Not compatible with your operating system or architecture: xpc-connection@0.1.4
npm --cache-min=Infinity install --global
/usr/local/bin/tempguard -> /usr/local/lib/node_modules/tempguard/index.js
/usr/local/lib
└── tempguard@1.0.0 

npm WARN optional Skipping failed optional dependency /tempguard/noble/xpc-connection:
npm WARN notsup Not compatible with your operating system or architecture: xpc-connection@0.1.4
Building tempguard 
npm --cache-min=Infinity install
npm WARN install:leven@1.0.2 EROFS: read-only file system, symlink '../leven/cli.js' -> '/media/sf_shared/rigado-node-hello-world/parts/tempguard/build/node_modules/.bin/leven'
npm WARN install:rc@1.2.6 EROFS: read-only file system, symlink '../rc/cli.js' -> '/media/sf_shared/rigado-node-hello-world/parts/tempguard/build/node_modules/.bin/rc'
npm WARN install:sshpk@1.14.1 EROFS: read-only file system, symlink '../sshpk/bin/sshpk-sign' -> '/media/sf_shared/rigado-node-hello-world/parts/tempguard/build/node_modules/.bin/sshpk-sign'
npm WARN install:uuid@3.2.1 EROFS: read-only file system, symlink '../uuid/bin/uuid' -> '/media/sf_shared/rigado-node-hello-world/parts/tempguard/build/node_modules/.bin/uuid'
tempguard@1.0.0 /media/sf_shared/rigado-node-hello-world/parts/tempguard/build
└── noble@1.9.1 

npm WARN optional Skipping failed optional dependency /noble/xpc-connection:
npm WARN notsup Not compatible with your operating system or architecture: xpc-connection@0.1.4
npm --cache-min=Infinity install --global
/usr/local/bin/tempguard -> /usr/local/lib/node_modules/tempguard/index.js
/usr/local/lib
└── tempguard@1.0.0 

npm WARN optional Skipping failed optional dependency /tempguard/noble/xpc-connection:
npm WARN notsup Not compatible with your operating system or architecture: xpc-connection@0.1.4
Staging tempguard 
Priming tempguard 
We would appreciate it if you anonymously reported this issue.
No other data than the traceback ('/tmp/tmpn0ksqbl_/trace.txt') and the version of snapcraft in use will be sent.
Would you like to send this error data? (Yes/No/Always) [no]:

After priming, it is asking if I would like to report the issue. But I see no issue… Only warnings.

The bin folder on the prime folder only has a node file, but not the tempguard that I’m expecting.

this is my snapcraft.yaml

name: tempguard
version: '1.0.0'
summary: Tempguard scanner
description: Tempguard scanner
confinement: devmode
grade: devel

parts:
  tempguard:
    plugin: nodejs
    source: .
    build-packages:
      - libudev-dev
      - libbluetooth-dev
      - python
      - g++
      - make
      - bluez

apps:
  tempguard:
    command: bin/tempguard
    daemon: simple
    restart-condition: always
    plugs:
      - network
      - network-control
      - bluetooth-control

And this is my package.json

{
  "name": "tempguard",
  "version": "1.0.0",
  "description": "Tempguard scanner",
  "main": "index.js",
  "scripts": {
    "start": "node ./index.js",
    "lint": "./node_modules/.bin/eslint .",
    "lint:fix": "npm run lint -- --fix",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "engines": {
    "node": ">=6.11.4"
  },
  "files": [
    "index.js"
  ],
  "bin": "index.js",
  "repository": {
    "type": "git"
  },
  "keywords": [
    "bluetooth"
  ],
  "dependencies": {
    "axios": "^0.18.0",
    "noble": "^1.9.1"
  },
  "devDependencies": {
    "eslint": "^4.19.1",
    "eslint-config-airbnb-base": "^12.1.0",
    "eslint-plugin-import": "^2.10.0"
  }
}

Thank you

Mmmm… problem seems to be something else… somehow I was able to get prime to finish without spitting that anonymous report question… but the bin folder is still empty.

Why could it be that it is not making the snap?

Thanks

have a look in prime/usr/local/bin for the tempguard file:

Would you look at that! Thanks!!