You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
sibbl
changed the title
Npm module seems to be broken?
Npm install does not build the package on Windows
May 29, 2016
This is indeed a problem, also on a mac. I did the following to fix this quickly:
$ cd node_modules/angular-translate-extract
$ npm install
$ 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!
I just installed the module via
npm install -D angular-translate-extract
but when importing it, Node always tells me that itCannot find module 'angular-translate-extract'
.As far as I can see, the
"main": "./lib/index.js",
inside thepackage.json
refers to a lib folder, which does not exist in my localnode_modules/angular-translate-extract
directory.I'm using the latest node and npm versions on Windows. Is it possible that the
rm
of theprebuild
steps might be the reason as it's not available on Windows?Update: removing the
prebuild
step and compiling it myself withnpm run build
in the directory helped. I guess you should rather use rimraf or some other useful package for this.The text was updated successfully, but these errors were encountered: