Installation misses directories and files
maxdevjs opened this issue · comments
npm init
✔ Which framework would you like to use? › React
✔ Select features needed for your project: ›
✔ Directory to use … .
✔ Are you sure you want to write into the current directory? … no
✔ OK. Please provide another directory. … test
(node:9360) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, scandir '~/.nvm/versions/node/v10.9.0/lib/node_modules/@pwa/cli/templates/assets'
Installation misses the following:
- assets
- css
- index.html
- .gitignore
(manually copying them solves the issue)
node -v 10.9.0
npm -v 6.4.1
Hey, thanks! Are you on latest version of @pwa/cli
? It should be 0.1.0
The current scaffolder is still incomplete, but what you selected should definitely be working.
@lukeed Just hit the same issue as above, and yes to 0.1.0.
Bummer! I'll jump on it in a few minutes. What were the selections?
React > CSS preprocessor > current directory > y > y
This leads to an error
UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/@pwa/cli/templates/assets'
at Object.fs.readdirSync (fs.js:904:18)
at walk (/usr/local/lib/node_modules/@pwa/cli/node_modules/tiny-glob/sync.js:12:20)
at module.exports (/usr/local/lib/node_modules/@pwa/cli/node_modules/tiny-glob/sync.js:62:3)
at prompts.then.argv (/usr/local/lib/node_modules/@pwa/cli/lib/init.js:228:3)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
I noticed there is no assets folder in the installed @pwa/cli/templates
- maybe your publish to npm is excluding a few things?
Thanks! I'll just on this. Most definitely related to the last second TODO messages I added. ...that was a great idea..
@lukeed Just quickly had a look...maybe files key in package.json under cli.
Yupp..... that'll do it 🙈 Fixed in 0.1.1
Thank you both! 🙇