olefredrik/FoundationPress

Installed Stripe and now I can't get npm start going

Radizzt opened this issue · 0 comments

Please List the Following:

  • OS & version:
  • Node version (node -v) [Node v6+ is required] : v10.6.0
  • FoundationPress version (see line 3 in package.json): 2.10.6
  • Foundation version (found in node_modules/foundation-sites/package.json) : 6.5.1

I was looking to put Stripe into my site and I was following their "quick start"

I just did a npm install stripe

Everything was fine until I try to do "npm start"

npm start

foundationpress@2.10.6 start /Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress
gulp

[18:24:17] Requiring external module babel-register
[18:24:46] Loading config file...
[18:24:46] config.yml exists, loading config.yml
[18:24:46] Using gulpfile /Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/gulpfile.babel.js
[18:24:46] Starting 'default'...
[18:24:46] Starting 'build'...
[18:24:46] Starting 'clean'...
[18:24:46] Finished 'clean' after 61 ms
[18:24:46] Starting 'sass'...
[18:24:46] Starting 'webpack:build'...
[18:24:46] Starting 'images'...
[18:24:46] Starting 'copy'...
[18:25:01] Finished 'copy' after 15 s
[18:25:04] Finished 'sass' after 19 s
[18:25:05] Finished 'images' after 19 s
[18:25:06] 'webpack:build' errored after 20 s
[18:25:06] Error in plugin "webpack-stream"
Message:
./node_modules/stripe/lib/utils.js
Module not found: Error: Can't resolve 'child_process' in '/Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/stripe/lib'
resolve 'child_process' in '/Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/stripe/lib'
Parsed request is a module
using description file: /Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/stripe/package.json (relative path: ./lib)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/stripe/package.json (relative path: ./lib)
resolve as module
/Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/stripe/lib/node_modules doesn't exist or is not a directory
/Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/stripe/node_modules doesn't exist or is not a directory
/Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/node_modules doesn't exist or is not a directory
/Applications/MAMP/htdocs/GetPick/wp-content/themes/node_modules doesn't exist or is not a directory
/Applications/MAMP/htdocs/GetPick/wp-content/node_modules doesn't exist or is not a directory
/Applications/MAMP/htdocs/GetPick/node_modules doesn't exist or is not a directory
/Applications/MAMP/htdocs/node_modules doesn't exist or is not a directory
/Applications/MAMP/node_modules doesn't exist or is not a directory
/Applications/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
looking for modules in /Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules
using description file: /Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/package.json (relative path: ./node_modules)
using description file: /Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/package.json (relative path: ./node_modules/child_process)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/child_process doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/child_process.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/child_process.json doesn't exist
as directory
/Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/child_process doesn't exist
[/Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/stripe/lib/node_modules]
[/Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/stripe/node_modules]
[/Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/node_modules]
[/Applications/MAMP/htdocs/GetPick/wp-content/themes/node_modules]
[/Applications/MAMP/htdocs/GetPick/wp-content/node_modules]
[/Applications/MAMP/htdocs/GetPick/node_modules]
[/Applications/MAMP/htdocs/node_modules]
[/Applications/MAMP/node_modules]
[/Applications/node_modules]
[/node_modules]
[/Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/child_process]
[/Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/child_process.js]
[/Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/child_process.json]
[/Applications/MAMP/htdocs/GetPick/wp-content/themes/FoundationPress/node_modules/child_process]
@ ./node_modules/stripe/lib/utils.js 4:13-37
@ ./node_modules/stripe/lib/stripe.js
@ ./src/assets/js/app.js
@ multi ./src/assets/js/app.js
Details:
domain: [object Object]
domainThrown: true

[18:25:06] 'build' errored after 20 s
[18:25:06] 'default' errored after 20 s
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! foundationpress@2.10.6 start: gulp
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the foundationpress@2.10.6 start 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! /Users/richard/.npm/_logs/2019-08-10T22_25_06_180Z-debug.log

I tried deleting the node_module and doing npm install again and it was worked fine, but npm start still getting that error.