EddyVerbruggen / nativescript-printer

:fax: Send an image or the screen contents to a physical printer
MIT License
36 stars 13 forks source link

Demo doesn't start - No project found #27

Open map7 opened 3 years ago

map7 commented 3 years ago

I'm trying to get the demo working so I can have a go at fixing some of the bugs relating to printing under Android. I've cloned the repo on my Debian 10 machine running node 14.13.1 and I get this error;

output from the command

~/code/nativescript/nativescript-printer/src (master) % npm run demo.android

> nativescript-printer@2.0.0 demo.android /home/map7/code/nativescript/nativescript-printer/src
> npm run build && cd ../demo && tns platform remove android && tns run android --justlaunch

> nativescript-printer@2.0.0 build /home/map7/code/nativescript/nativescript-printer/src
> npm i && npm run tsc

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

audited 723 packages in 6.396s

28 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

> nativescript-printer@2.0.0 tsc /home/map7/code/nativescript/nativescript-printer/src
> tsc -skipLibCheck

(node:30325) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:30325) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:30325) Warning: Accessing non-existent property 'which' of module exports inside circular dependency

Support for Node.js 14.13.1 is not verified. NativeScript CLI might not install or run properly.

No project found at or above '/home/map7/code/nativescript/nativescript-printer/demo' and neither was a --path specified.
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! nativescript-printer@2.0.0 demo.android: `npm run build && cd ../demo && tns platform remove android && tns run android --justlaunch`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the nativescript-printer@2.0.0 demo.android script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/map7/.npm/_logs/2020-10-12T04_22_11_653Z-debug.log

debug log output

/2020-10-12T04_28_30_595Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'demo.android' ]
2 info using npm@6.14.8
3 info using node@v14.13.1
4 verbose run-script [ 'predemo.android', 'demo.android', 'postdemo.android' ]
5 info lifecycle nativescript-printer@2.0.0~predemo.android: nativescript-printer@2.0.0
6 info lifecycle nativescript-printer@2.0.0~demo.android: nativescript-printer@2.0.0
7 verbose lifecycle nativescript-printer@2.0.0~demo.android: unsafe-perm in lifecycle true
8 verbose lifecycle nativescript-printer@2.0.0~demo.android: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/map7/code/nativescript/nativescript-printer/src/node_modules/.bin:/home/map7/.cask/bin:/usr/local/rbenv/shims:/usr/local/rbenv/bin:/home/map7/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/map7/bin:/usr/local/rbenv/shims:/usr/local/rbenv/bin:/home/map7/bin:/usr/local/rbenv/shims:/usr/local/rbenv/bin:/usr/share/safe-rm/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/usr/local/android/sdk/tools/:/usr/local/android/sdk/platform-tools/:/usr/lib/jvm/java-8-oracle/bin
9 verbose lifecycle nativescript-printer@2.0.0~demo.android: CWD: /home/map7/code/nativescript/nativescript-printer/src
10 silly lifecycle nativescript-printer@2.0.0~demo.android: Args: [
10 silly lifecycle   '-c',
10 silly lifecycle   'npm run build && cd ../demo && tns platform remove android && tns run android --justlaunch'
10 silly lifecycle ]
11 info lifecycle nativescript-printer@2.0.0~demo.android: Failed to exec demo.android script
12 verbose stack Error: nativescript-printer@2.0.0 demo.android: `npm run build && cd ../demo && tns platform remove android && tns run android --justlaunch`
12 verbose stack spawn ENOENT
12 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
12 verbose stack     at ChildProcess.emit (events.js:314:20)
12 verbose stack     at maybeClose (internal/child_process.js:1047:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
13 verbose pkgid nativescript-printer@2.0.0
14 verbose cwd /home/map7/code/nativescript/nativescript-printer/src
15 verbose Linux 4.19.0-10-amd64
16 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "demo.android"
17 verbose node v14.13.1
18 verbose npm  v6.14.8
19 error code ELIFECYCLE
20 error syscall spawn
21 error file sh
22 error errno ENOENT
23 error nativescript-printer@2.0.0 demo.android: `npm run build && cd ../demo && tns platform remove android && tns run android --justlaunch`
23 error spawn ENOENT
24 error Failed at the nativescript-printer@2.0.0 demo.android script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]