Closed pjatx closed 6 years ago
your vendor scripts have something wrong π’can't help you there. its your JS in the end
This was on a brand new install / setup of the project without adding anything new. Will setup a brand new store and try to repro
Make sure to install the new namescoped package:
npm install -g @pixel2html/generator-shopify
$ yo @pixel2html/shopify
Just tried reinstalling according to instructions above and getting a new error : (
philipjohnson@Philips-MBP-3 ξ° ~/projects ξ° mkdir p2html-test
philipjohnson@Philips-MBP-3 ξ° ~/projects ξ° cd p2html-test
philipjohnson@Philips-MBP-3 ξ° ~/projects/p2html-test ξ° npm install -g @pixel2html/generator-shopify
+ @pixel2html/generator-shopify@3.0.2
added 207 packages in 6.509s
philipjohnson@Philips-MBP-3 ξ° ~/projects/p2html-test ξ° yo @pixel2html/shopify
________________________________________
< A few general purpose questions now... >
----------------------------------------
\ ,-^-.
\ !oYo!
\ /./=\.\______
## )\/\
||-----w||
|| ||
Cowth Vader
? Name of your Project? Test
______________________________________________________________
( To set up a shop now you will need to have )
( private API credentials at hand see more here: )
( https://help.shopify.com/api/getting-started/api-credentials )
--------------------------------------------------------------
o
o
_ _
/ /. _-//
/ /// _- /
//_-//========= /
_/// //_ || ./
_| -__-||
| __ - \ \
| |#- _-|_ |
| |#||| _ |
| _==_ ||
- ==|.=.=|_ = |
| |-|- ___ |
| --__ _ /
|| === |
| _. //
||_ __- _- _|
\_______/ ___/ _|
--*
? Do you want to set up your shop credentials now? Yes
? Shop Name (Its the part that goes before the .myshopify.com bit on the admin) xxxxxxxxxxxxxxxxxxxx
? API Key
philipjohnson@Philips-MBP-3 ξ° ~/projects/p2html-test ξ° cd ..
philipjohnson@Philips-MBP-3 ξ° ~/projects ξ° sudo rm -r p2html-test
philipjohnson@Philips-MBP-3 ξ° ~/projects ξ° mkdir p2h-test
philipjohnson@Philips-MBP-3 ξ° ~/projects ξ° cd p2h-test
philipjohnson@Philips-MBP-3 ξ° ~/projects/p2h-test ξ° yo @pixel2html/shopify
________________________________________
< A few general purpose questions now... >
----------------------------------------
\ ,-^-.
\ !oYo!
\ /./=\.\______
## )\/\
||-----w||
|| ||
Cowth Vader
? Name of your Project? Test
______________________________________________________________
( To set up a shop now you will need to have )
( private API credentials at hand see more here: )
( https://help.shopify.com/api/getting-started/api-credentials )
--------------------------------------------------------------
o
o
_ _
/ /. _-//
/ /// _- /
//_-//========= /
_/// //_ || ./
_| -__-||
| __ - \ \
| |#- _-|_ |
| |#||| _ |
| _==_ ||
- ==|.=.=|_ = |
| |-|- ___ |
| --__ _ /
|| === |
| _. //
||_ __- _- _|
\_______/ ___/ _|
--*
? Do you want to set up your shop credentials now? Yes
? Shop Name (Its the part that goes before the .myshopify.com bit on the admin) xxxxxxxxxxxxx
? API Key xxxxxxxxxxxxxxx
? Password xxxxxxxxxxxx
? Shared Secret xxxxxxxxxxxxxxx
? Theme ID (Create a new theme click customize HTML/CSS and its after the themes/ part on the URL) xxxxxxxxxxxxxxx
create package.json
create src/theme/config/settings_schema.json
create src/theme/layout/checkout.liquid
create src/theme/layout/theme.liquid
create src/theme/locales/en.default.json
create src/theme/locales/es.json
create src/theme/sections/featured-collection.liquid
create src/theme/snippets/svg-icons.liquid
create src/theme/templates/customers/account.liquid
create src/theme/templates/customers/activate_account.liquid
create src/theme/templates/customers/addresses.liquid
create src/theme/templates/customers/login.liquid
create src/theme/templates/customers/order.liquid
create src/theme/templates/customers/register.liquid
create src/theme/templates/customers/reset_password.liquid
create src/theme/templates/404.liquid
create src/theme/templates/article.liquid
create src/theme/templates/blog.liquid
create src/theme/templates/cart.liquid
create src/theme/templates/collection.liquid
create src/theme/templates/gift_card.liquid
create src/theme/templates/index.liquid
create src/theme/templates/list-collections.liquid
create src/theme/templates/page.contact.liquid
create src/theme/templates/page.liquid
create src/theme/templates/password.liquid
create src/theme/templates/product.liquid
create src/theme/templates/search.liquid
create .env
create .env.example
create .gitignore
create LICENSE
create editorconfig
create gulpfile.js
create readme.md
create webpack.config.js
create gulp/gulp.config.js
create gulp/tasks/clean.js
create gulp/tasks/deploy.js
create gulp/tasks/fonts.js
create gulp/tasks/icons.js
create gulp/tasks/images.js
create gulp/tasks/scripts.js
create gulp/tasks/serve.js
create gulp/tasks/shopify.js
create gulp/tasks/styles.js
create gulp/tasks/watch.js
create gulp/tasks/zip.js
create src/fonts/.gitkeep
create src/icons/gulp.svg
create src/images/shopify.svg
create src/scripts/index.js
create src/styles/main.scss
create src/styles/vendor.scss
+--------------------------+
|Thank you and Good Luck! π¦|
+--------------------------+
\
\ ββββββββ
\ β β ββ β
β β β
β βββββ
β β β
β
β
β β
β β β ββ β
β ββ β
β ββββ ββ β
ββββ ββ
βββββββββββββββββββββββββββββββ
PS: use npm run code to start
Love, Pixel2HTML
philipjohnson@Philips-MBP-3 ξ° ~/projects/p2h-test ξ° npm run code
> Test@1.0.0 code /Users/philipjohnson/projects/p2h-test
> cross-env NODE_ENV=development gulp
sh: cross-env: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! Test@1.0.0 code: `cross-env NODE_ENV=development gulp`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the Test@1.0.0 code script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/philipjohnson/.npm/_logs/2018-01-12T23_51_27_720Z-debug.log
β philipjohnson@Philips-MBP-3 ξ° ~/projects/p2h-test ξ° npm install
npm WARN deprecated minimatch@0.2.12: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated node-uuid@1.4.0: Use uuid module instead
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! code ETARGET
npm ERR! notarget No matching version found for stylelint-config-pixel2html@^0.1.1
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'Test'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/philipjohnson/.npm/_logs/2018-01-12T23_51_54_541Z-debug.log
Thanks for the report I'll look into it in more depth next week. I gotta update some dependencies and run some more tests.
I've edited your comment to remove the API crendentials :v
Thanks!
What's the latest stable version I can use in the mean time?
Any v 2.XX
ha - thanks! it's just a blank store, so feel free to play with it. just downloaded the debut theme and reuploaded it
npm i -g yo generator-pixel2html-shopify@2.1.1
$ yo pixel2html-shopify
Also take a look here, its unmaintained and a bit lonely but the webpack setup is super cool.
https://github.com/DynamoMTL/shopify-pipeline
I might use some of that tech in here in the future...
Fixed on 3.0.2
npm i -g yo @pixel2html/shop-generator
Steps to Reproduce:
gulp
orgulp full-deploy
Expected: Gulp tasks run without error
Actual: