Open luluprat opened 10 years ago
Hi, same here
With : yo restangular
/usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:126
throw e;
^
TypeError: Arguments to path.join must be strings
at path.js:360:15
at Array.filter (native)
at Object.exports.join (path.js:358:36)
at GitHubResolver._checkout (/usr/local/lib/node_modules/generator-restangular/node_modules/bower/lib/core/resolvers/GitHubResolver.js:54:21)
at /usr/local/lib/node_modules/generator-restangular/node_modules/bower/lib/core/resolvers/GitResolver.js:69:21
at _fulfilled (/usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:798:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:760:13)
at /usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:574:44
at flush (/usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:108:17)
You need to update the version of bower included with generator-restangular to at least 1.3.8 (this is a bug that's actually in bower). I couldn't get it to work by running the npm update command. On Windows open a command prompt in
C:\Users\<yourUserName>\AppData\Roaming\npm\node_modules\generator-restangular\node_modules
and run the following
npm uninstall bower
npm install bower@1.3.8
Then try running yo restangular
from your desired scaffolding folder.
I am getting what I believe to be the same error, even with Bower 1.3.8 through 1.3.12.
/usr/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:126
throw e;
^
TypeError: Arguments to path.join must be strings
at path.js:360:15
at Array.filter (native)
at Object.exports.join (path.js:358:36)
at GitHubResolver._checkout (/usr/lib/node_modules/generator-restangular/node_modules/bower/lib/core/resolvers/GitHubResolver.js:54:21)
at /usr/lib/node_modules/generator-restangular/node_modules/bower/lib/core/resolvers/GitResolver.js:69:21
at _fulfilled (/usr/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:798:54)
at self.promiseDispatch.done (/usr/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch (/usr/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:760:13)
at /usr/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:574:44
at flush (/usr/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:108:17)
Hi, same error with bower@1.3.12
/usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:126
throw e;
^
TypeError: Arguments to path.join must be strings
at Object.posix.join (path.js:471:13)
at GitHubResolver._checkout (/usr/local/lib/node_modules/generator-restangular/node_modules/bower/lib/core/resolvers/GitHubResolver.js:54:21)
at /usr/local/lib/node_modules/generator-restangular/node_modules/bower/lib/core/resolvers/GitResolver.js:69:21
at _fulfilled (/usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:798:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:760:13)
at /usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:574:44
at flush (/usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:355:11)
Hi, same error with bower@1.4.1
It looks like @jamesallardice has abandoned this, as PR #4 (sitting since Dec. 2014) fixes this issue & the project was last updated two years ago. If this isn't going to be updated anymore at least unpublish from npm so somebody else can maintain this project.
Had the same problem but I've got it to work with bower 1.7.9
hello
in my installation i try yo angular and evrithing is well done. i try sudo npm install --global generator-restangular ok yo restangular
/usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:126 throw e; ^ TypeError: Arguments to path.join must be strings at path.js:360:15 at Array.filter (native) at Object.exports.join (path.js:358:36) at GitHubResolver._checkout (/usr/local/lib/node_modules/generator-restangular/node_modules/bower/lib/core/resolvers/GitHubResolver.js:54:21) at /usr/local/lib/node_modules/generator-restangular/node_modules/bower/lib/core/resolvers/GitResolver.js:69:21 at _fulfilled (/usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:798:54) at self.promiseDispatch.done (/usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:827:30) at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:760:13) at /usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:574:44 at flush (/usr/local/lib/node_modules/generator-restangular/node_modules/bower/node_modules/q/q.js:108:17)
what's wrong? thanks