Cannot build in Windows
See original GitHub issueHello,
I am very new to Node so I might be doing something wrong…
I’m on Win 7 x64 and I ran the following successfully:
nvm use 4
npm install
However when I attempt to run:
npm run build
or npm run build_windows
I get the following error:
c:\Users\seccial\node source\nlp_compromise-master>npm run build
> nlp_compromise@6.5.0 build c:\Users\seccial\node source\nlp_compromise-master
> grunt build
Running "run:test" (run) task
'.' is not recognized as an internal or external command,
operable program or batch file.
Warning: non-zero exit code 255 Use --force to continue.
Aborted due to warnings.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.0.0
npm ERR! npm v2.14.2
npm ERR! code ELIFECYCLE
npm ERR! nlp_compromise@6.5.0 build: `grunt build`
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the nlp_compromise@6.5.0 build script 'grunt build'.
npm ERR! This is most likely a problem with the nlp_compromise package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! grunt build
npm ERR! You can get their info via:
npm ERR! npm owner ls nlp_compromise
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! c:\Users\seccial\node source\nlp_compromise-master\npm-debug.log
and
c:\Users\seccial\node source\nlp_compromise-master>npm run build_windows
> nlp_compromise@6.5.0 build_windows c:\Users\seccial\node source\nlp_compromise
-master
> grunt build_windows
Warning: Task "build_windows" not found. Use --force to continue.
Aborted due to warnings.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "run" "build_windows"
npm ERR! node v4.0.0
npm ERR! npm v2.14.2
npm ERR! code ELIFECYCLE
npm ERR! nlp_compromise@6.5.0 build_windows: `grunt build_windows`
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the nlp_compromise@6.5.0 build_windows script 'grunt build_wi
ndows'.
npm ERR! This is most likely a problem with the nlp_compromise package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! grunt build_windows
npm ERR! You can get their info via:
npm ERR! npm owner ls nlp_compromise
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! c:\Users\seccial\node source\nlp_compromise-master\npm-debug.log
Can anyone build on Windows? The grunt file does not look like it caters for Windows ie.
run: {
cleanup: { //remove builds
exec: 'rm -rf ./builds && mkdir builds'
},
init: { //add a header, before browserify
exec: 'echo "/* nlp_compromise v<%= pkg.version %> MIT*/" > ' + uncompressed
},
build: { //browserify -> babel -> derequire
exec: browserify + ' ./src/index.js --standalone nlp_compromise -t [ babelify --presets [ es2015 ] ] | derequire >> ' + uncompressed
},
uglify: { // jsFile -> jsFile.min
exec: uglify + ' ' + uncompressed + ' --mangle --compress --output ' + compressed + ' --preamble "/*nlp_compromise v<%= pkg.version %> MIT*/"' // --source-map ' + compressed + '.map'
},
test: {
exec: tape + ' ./test/unit_test/**/*_test.js | ' + tapSpec
},
browser_test: {
exec: 'browserify ./test/unit_test/*_test.js -o ./test/browser_test/compiled_tests.js && ' + fileServer + ' test/browser_test -o -c-1'
},
prerelease: { //test all versions serverside, client-side
exec: tape + ' ./test/prerelease/index.js | ' + tapSpec
},
demo: {
exec: fileServer + ' demo -o -c-1'
},
main: {
exec: 'node ./src/index.js'
},
build_windows: {
},
demo_windows: {
}
},
Thanks in advance,
Leo
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Windows Insider build error! Can't use my pc! - Microsoft Q&A
Select Troubleshoot > Advanced options > Command Prompt. When the Command Prompt window appears, enter the following lines and press Enter after ...
Read more >Error while building for Windows,I can't build ... - Unity Answers
I'm running into the following error message when trying to build games. This is the error I've been getting. Exception: D:\Unity\2019.4. 16f1\ ...
Read more >cannot build Windows App error MSB8066 · Issue #80179 ...
I am getting this error while building for windows on debug mode C:\Program Files (x86)\Microsoft Visual ...
Read more >Flutter Windows: cannot build App error MSB8066
Updated Aug 2021. Faced the same error for couple of hours, and none of the issue on Github or answer on StackOverflow seems...
Read more >Cannot build mixxx from source in windows 11 - Help & Support
Hello I have problem installed mixxx 2.3 from source in windows 11. I cannot run tools/windows_buildenv.bat script sucessfully.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have a small Gulp Script I use to run the build on Windows to work around the browserify issues.
If it’s useful, let me know and I can polish it up and commit it.
yes - the errors start appearing again when I change async to false in the exec commands… I think the issue is mainly due to paths slashes being inverted in Windows - not completely sure. I looked into it for a while, I messed up my nodejs installation and then decided to just use my Linux VM instead.
I will give it some more time soon.
Leo