Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

yo backbone scaffolding failing due to "bower-requirejs.js" tasks...ERROR #117

Open
pmandala opened this issue Oct 14, 2015 · 2 comments
Open

Comments

@pmandala
Copy link

pmandala-mac:yoBackbone pmandala$ grunt build
Loading "bower-requirejs.js" tasks...ERROR

Error: Cannot find module 'bower'

Running "clean:dist" (clean) task

1 path cleaned.

Running "createDefaultTemplate" task

Running "jst:compile" (jst) task

Destination not written because compiled files were empty.

Running "sass:dist" (sass) task
Fatal error: undefined is not a function

Execution Time (2015-10-13 23:35:34 UTC)
loading tasks 771ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 96%
jst:compile 19ms ▇▇ 2%
Total 807ms

pmandala-mac:yoBackbone pmandala$ npm install --save bower-requirejs

node-sass@1.2.3 install /Users/pmandala/X-Work/yoBackbone/node_modules/grunt-sass/node_modules/node-sass
node scripts/install.js

Binary downloaded and installed at /Users/pmandala/X-Work/yoBackbone/node_modules/grunt-sass/node_modules/node-sass/vendor/darwin-x64/binding.node

node-sass@1.2.3 postinstall /Users/pmandala/X-Work/yoBackbone/node_modules/grunt-sass/node_modules/node-sass
node scripts/build.js

darwin-x64 exists; testing
module.js:355
Module._extensions[extension](this, filename);
^
Error: Module did not self-register.
at Error (native)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/Users/pmandala/X-Work/yoBackbone/node_modules/grunt-sass/node_modules/node-sass/lib/index.js:181:15)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
yobackbone@0.0.0 /Users/pmandala/X-Work/yoBackbone
├── UNMET PEER DEPENDENCY bower@^1.x
└── bower-requirejs@1.2.0

npm WARN EPEERINVALID grunt-bower-requirejs@1.1.1 requires a peer of bower@^1.x but none was installed.
npm WARN EPEERINVALID bower-requirejs@1.2.0 requires a peer of bower@^1.x but none was installed.
npm WARN EPACKAGEJSON yobackbone@0.0.0 No description
npm WARN EPACKAGEJSON yobackbone@0.0.0 No repository field.
npm WARN EPACKAGEJSON yobackbone@0.0.0 No license field.
npm ERR! Darwin 14.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "--save" "bower-requirejs"
npm ERR! node v0.12.5
npm ERR! npm v3.3.7
npm ERR! code ELIFECYCLE

npm ERR! node-sass@1.2.3 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@1.2.3 postinstall script 'node scripts/build.js'.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build.js
npm ERR! You can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/pmandala/X-Work/yoBackbone/npm-debug.log

@pmandala
Copy link
Author

Unable to attach npm-debug.log

@bezoerb
Copy link
Collaborator

bezoerb commented Oct 27, 2015

@pmandala you're using npm 3 which doesn't support peerDependencies anymore.
Try npm install --save-dev bower

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants