npm test error
markdorrill opened this issue · comments
I've cloned the repo and attempted to run the tests to validate everything works before attempting to try the recipes but it throws an error:
module.js:327
throw err;
^
Error: Cannot find module './_apply'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/ubuntu/workspace/assemble-workshop/node_modules/gulp-sitemap/node_modules/lodash/defaults.js:1:75)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/ubuntu/workspace/assemble-workshop/node_modules/gulp-sitemap/index.js:3:16)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/ubuntu/workspace/assemble-workshop/recipes/gulp-sitemap/assemblefile.js:6:15)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/ubuntu/workspace/assemble-workshop/recipes/gulp-sitemap/assemblefile.spec.js:11:11)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at /mnt/shared/lib/node_modules/mocha/lib/mocha.js:219:27
at Array.forEach (native)
at Mocha.loadFiles (/mnt/shared/lib/node_modules/mocha/lib/mocha.js:216:14)
at Mocha.run (/mnt/shared/lib/node_modules/mocha/lib/mocha.js:468:10)
at Object.<anonymous> (/mnt/shared/lib/node_modules/mocha/bin/_mocha:403:18)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:134:18)
at node.js:962:3
npm ERR! Test failed. See above for more details.
dorrilldesign:~/workspace/assemble-workshop (master) $ npm test
> assemble-workshop@0.7.3 test /home/ubuntu/workspace/assemble-workshop
> mocha ./recipes/**/*.spec.js
module.js:327
throw err;
^
Error: Cannot find module './_apply'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/ubuntu/workspace/assemble-workshop/node_modules/gulp-sitemap/node_modules/lodash/defaults.js:1:75)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/ubuntu/workspace/assemble-workshop/node_modules/gulp-sitemap/index.js:3:16)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/ubuntu/workspace/assemble-workshop/recipes/gulp-sitemap/assemblefile.js:6:15)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/ubuntu/workspace/assemble-workshop/recipes/gulp-sitemap/assemblefile.spec.js:11:11)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at /mnt/shared/lib/node_modules/mocha/lib/mocha.js:219:27
at Array.forEach (native)
at Mocha.loadFiles (/mnt/shared/lib/node_modules/mocha/lib/mocha.js:216:14)
at Mocha.run (/mnt/shared/lib/node_modules/mocha/lib/mocha.js:468:10)
at Object.<anonymous> (/mnt/shared/lib/node_modules/mocha/bin/_mocha:403:18)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:134:18)
at node.js:962:3
npm ERR! Test failed. See above for more details.
@markdorrill Thanks for the issue! If you're reporting a bug, please be sure to include:
- The version of
assemble
you are using. - Your assemblefile.js (This can be in a gist)
- The commandline output. (Screenshot or gist is fine)
- What you expected to happen instead.
I know there was an update release for gulp-sitemap recently. I will look into this asap.
I am sorry but so far I am unable to reproduce this error.
Steps I took:
- git clone https://github.com/assemble/assemble-workshop.git
- npm install
- npm test
My hunch is we have different versions of one of the tools installed.
This is what I have:
npm: 2.15.8
node: 4.4.7
mocha: 2.5.3
Thanks for your assistance, getting this working was very important for me.
Yes, I was on node 4.47. I have upgraded to 4.47 and there is no longer any error.
Closing as the cause was identified.
Glad to hear it is working for you