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

Npm install does not build the package on Windows #10

Open
sibbl opened this issue May 29, 2016 · 1 comment
Open

Npm install does not build the package on Windows #10

sibbl opened this issue May 29, 2016 · 1 comment

Comments

@sibbl
Copy link

sibbl commented May 29, 2016

I just installed the module via npm install -D angular-translate-extract but when importing it, Node always tells me that it Cannot find module 'angular-translate-extract'.

As far as I can see, the "main": "./lib/index.js", inside the package.json refers to a lib folder, which does not exist in my local node_modules/angular-translate-extract directory.

I'm using the latest node and npm versions on Windows. Is it possible that the rm of the prebuild steps might be the reason as it's not available on Windows?

Update: removing the prebuild step and compiling it myself with npm run build in the directory helped. I guess you should rather use rimraf or some other useful package for this.

@sibbl sibbl changed the title Npm module seems to be broken? Npm install does not build the package on Windows May 29, 2016
@vjanssens
Copy link

vjanssens commented Jun 14, 2016

This is indeed a problem, also on a mac. I did the following to fix this quickly:

  1. $ cd node_modules/angular-translate-extract
  2. $ npm install
  3. $ npm run build
    Ofcourse this is far from ideal, but it worked for me.

I have to say, if you set up everything correctly it absolutely works like a charm. The extra info (empty/updated/deleted/new) are really usefull. Reason for me for changing from gulp-angular-translate-extract to this module is it's ability to extract strings in ternary operators. Great work!

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

2 participants