Closed liquidonthedrums closed 5 years ago
I'm running the "npm start" command and getting an error "Cannot find module 'gulp-sass-glob'".
The referenced package gulp-sass-glob
is not an FoundationPress dependency.
So I wonder why npm tries to install it:
gulp-sass-glob
manually to your package.json?gulp-sass-glob
without installing it via npm.Please provide us your package.json and your gulpfile.babel.js
Update package.json dependency to "gulp": "4.0"
Why did you change this?
"gulp": "^4.0",
should work fine.
I inherited this project and yes you were correct, gulp-sass-globs and a few other packages were added without saving them as dependencies. The config.yml or config-sample.yaml were also missing so I was getting another error which was ".err not defined".
Have added all dependencies and missing files and it is all building. Thanks for your help.
I'm running the "npm start" command and getting an error "Cannot find module 'gulp-sass-glob'".
How can this bug be reproduced?
What did you expect to happen? Build without issues
What happened instead?
Error: Cannot find module 'gulp-sass-glob'
Please List the Following:
node_modules/foundation-sites/package.json
) : 6.4.3Below is the error log
0 info it worked if it ends with ok 1 verbose cli [ '/home/matt/.nvm/versions/node/v6.11.5/bin/node', 1 verbose cli '/home/matt/.nvm/versions/node/v6.11.5/bin/npm', 1 verbose cli 'start' ] 2 info using npm@3.10.10 3 info using node@v6.11.5 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle foundationpress@2.10.4~prestart: foundationpress@2.10.4 6 silly lifecycle foundationpress@2.10.4~prestart: no script for prestart, continuing 7 info lifecycle foundationpress@2.10.4~start: foundationpress@2.10.4 8 verbose lifecycle foundationpress@2.10.4~start: unsafe-perm in lifecycle true 9 verbose lifecycle foundationpress@2.10.4~start: PATH: /home/matt/.nvm/versions/node/v6.11.5/lib/node_modules/npm/bin/node-gyp-bin:/home/matt/projects/abc/wp-content/themes/abc1/node_modules/.bin:/home/matt/.sdkman/candidates/gradle/current/bin:/home/matt/.nvm/versions/node/v6.11.5/bin:/home/matt/bin:/home/matt/.local/bin:/opt/OpenPrinting-Gutenprint/sbin:/opt/OpenPrinting-Gutenprint/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/matt/Android/Sdk/tools:/home/matt/Android/Sdk/platform-tools:/home/matt/java/jdk1.8.0_171/bin 10 verbose lifecycle foundationpress@2.10.4~start: CWD: /home/matt/projects/abc/wp-content/themes/abc 11 silly lifecycle foundationpress@2.10.4~start: Args: [ '-c', 'gulp' ] 12 silly lifecycle foundationpress@2.10.4~start: Returned: code: 1 signal: null 13 info lifecycle foundationpress@2.10.4~start: Failed to exec start script 14 verbose stack Error: foundationpress@2.10.4 start: (/home/matt/.nvm/versions/node/v6.11.5/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess. (/home/matt/.nvm/versions/node/v6.11.5/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:920:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
15 verbose pkgid foundationpress@2.10.4
16 verbose cwd /home/matt/projects/abc/wp-content/themes/abc-alt1
17 error Linux 4.15.0-43-generic
18 error argv "/home/matt/.nvm/versions/node/v6.11.5/bin/node" "/home/matt/.nvm/versions/node/v6.11.5/bin/npm" "start"
19 error node v6.11.5
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error foundationpress@2.10.4 start:
gulp
14 verbose stack Exit status 1 14 verbose stack at EventEmitter.gulp
22 error Exit status 1 23 error Failed at the foundationpress@2.10.4 start script 'gulp'. 23 error Make sure you have the latest version of node.js and npm installed. 23 error If you do, this is most likely a problem with the foundationpress package, 23 error not with npm itself. 23 error Tell the author that this fails on your system: 23 error gulp 23 error You can get information on how to open an issue for this project with: 23 error npm bugs foundationpress 23 error Or if that isn't available, you can get their info via: 23 error npm owner ls foundationpress 23 error There is likely additional logging output above. 24 verbose exit [ 1, true ]I have tried deleting the node_modules folder and re-running "npm install", and also tried deleting the package-lock.json file, removing node_modules and re-installing.