-
Notifications
You must be signed in to change notification settings - Fork 98
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
Wrong module path? #64
Comments
i could solve this with following changes on manager/utils.js: var fs = require('fs-extra'),
chalk = require('chalk'),
inquirer = require('inquirer'),
dir = require('global-modules'),
mkdirp = require('mkdirp'),
isWindows = require('is-windows'),
pjson = require('../package.json'),
path = require('path');
module.exports = {
// resolve module path with path module
module_path: path.resolve(`${__dirname}/..`),
/* ... */
} |
@NonPolynomial I'm assuming then that you install your global node modules into a non-default location on Windows? I was expecting the global-modules dependency to resolve the correct path in that case... Thanks for the feedback on what change could be made. I'll test it out, I just need to ensure it sets the correct path in all instances. Mac and Windows alike. |
hey @RyanHavoc , i expected Further explanation: |
@NonPolynomial It should do the trick but then again I wouldn't have expected it to break in your case in the first place. Testing required! |
Do you plan to include a bugfix for that in any version? @RyanHavoc |
@NonPolynomial Could you try out the |
I'm afraid, it's not :/ I've installed
I could fork your project, apply my changes and make a pull request, when I'm at home. |
@RyanHavoc would you prefer, when I take a fork and apply the changes to |
@NonPolynomial 'master' please. It's going to be a little while before v2.0.0 is ready for release. |
@RyanHavoc fixed with the merge #96 -> Release v1.9.5 |
Tell us about the issue you are experiencing
If i try to
astrum init ./patterns/
(or any other path) i get the following error:It seems that astrum tries to get the template files from my appdata folder, but node and npm are installed in
C:\Node
What behaviour would you expect?
Astrum should look for the template files in the folder node / npm / astrum was installed in.
How can this issue be replicated?
astrum init ./patterns/
Your environment
Platform: PC
OS Version: Windows 8.1
Node Version: 6.3.0
NPM Version: 3.10.5
Astrum Version: 1.6.3
Editted: fixed typo
The text was updated successfully, but these errors were encountered: