jamesallardice / generator-restangular

A Yeoman generator for AngularJS apps with RestAngular
18 stars 4 forks source link

install restangular #3

Open luluprat opened 10 years ago

luluprat commented 10 years ago

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

polomarcus commented 9 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)
DasNerdherder commented 9 years ago

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.

VeggieMeat commented 9 years ago

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)
lordlinus commented 9 years ago

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)
msolecki commented 9 years ago

Hi, same error with bower@1.4.1

funkytaco commented 9 years ago

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.

ealsedewilde commented 8 years ago

Had the same problem but I've got it to work with bower 1.7.9