Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generator error with sails 0.12 #223

Open
quantjin opened this issue Mar 17, 2016 · 3 comments
Open

generator error with sails 0.12 #223

quantjin opened this issue Mar 17, 2016 · 3 comments

Comments

@quantjin
Copy link

Hello, the generator is not working for me with sails 0.12 on windows 32-bit, i found a (workaround)[#222], if i followed the workaround, the generator will not throw any error, but only generate config/permissions.js

>npm -v
2.14.12
>node -v
v4.3.1
>sails -v
0.12.1
>sails generate permissions-api
error: Error in "permissions-api" generator (loaded from sails-permissions/gener
ator)
C:\Users\AppData\Roaming\npm\node_modules\sails\node_modules\sails-generat
e\lib\index.js:51
      throw e;
      ^

Error: Cannot find module 'C:\Users\sails-permissions\generato
r'
    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 module.exports (C:\Users\AppData\Roaming\npm\node_modules\sails\nod
e_modules\sails-generate\lib\index.js:71:19)
    at Command.module.exports (C:\Users\AppData\Roaming\npm\node_modules\s
ails\bin\sails-generate.js:107:10)
    at Command.listener (C:\Users\AppData\Roaming\npm\node_modules\sails\n
ode_modules\commander\index.js:301:8)
    at emitTwo (events.js:87:13)
    at Command.emit (events.js:172:7)
    at Command.parseArgs (C:\Users\AppData\Roaming\npm\node_modules\sails\
node_modules\commander\index.js:615:12)
@oca159
Copy link

oca159 commented May 27, 2016

I have the same error, could you please tell me what is your workaround?

@GeeWee
Copy link

GeeWee commented Oct 26, 2016

Having same issue.

@lakinoheat
Copy link

Try changing the .sailsrc as follows:
{
"generators": {
"modules": {
"permissions-api": "**node_modules/**sails-permissions/generator"
}
}
}

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

No branches or pull requests

4 participants