nstudio / xplat

Cross-platform (xplat) tools for Nx workspaces.
MIT License
366 stars 52 forks source link

[Bug] Cannot start newly generated app on NPM v7 #254

Closed wSedlacek closed 3 years ago

wSedlacek commented 3 years ago

This issue may be an upstream issue, bug figure it is worth documenting if nothing else.

Steps to reproduce

$ npx create-nx-workspace animated-playground
✔ What to create in the new workspace · empty
✔ Use Nx Cloud? (It's free and doesn't require registration.) · No

$ npm i -D @nstudio/xplat
$ nx generate @nstudio/xplat:app
✔ What name would you like for this app? · demo
✔ What type of app would like to create? · nativescript
✔ In which directory should the app be generated? (Just press Enter for the default: directly in 'apps') · 
✔ Would you like to configure routing for this app? (Y/n) · false

$ nx run nativescript-demo:ios

Result

Searching for devices...
Unable to install dependencies. Make sure your package.json is valid and all dependencies are correct. Error is: Command npm failed with exit code 1 Error output: 
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm ERR! code 1
npm ERR! path /Users/william.sedlacek/Development/cf/animated-playground/node_modules/typescript
npm ERR! command failed
npm ERR! command sh -c gulp build-eslint-rules
npm ERR! [06:21:18] No gulpfile found

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/william.sedlacek/.npm/_logs/2021-04-10T13_21_20_636Z-debug.log

ERROR: Something went wrong in @nrwl/run-commands - Command failed: ns debug ios --no-hmr --env.projectName=nativescript-demo

Environment

$ npm --version
7.9.0

When installing npm@latest-6 the behavior does not occur.