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

Build on Windows 8: npm EBADPLATFORM error #12293

Closed
albertosantini opened this issue Oct 14, 2016 · 7 comments
Closed

Build on Windows 8: npm EBADPLATFORM error #12293

albertosantini opened this issue Oct 14, 2016 · 7 comments

Comments

@albertosantini
Copy link
Contributor

@albertosantini albertosantini commented Oct 14, 2016

I'm submitting a ... (check one with "x")

[X ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior
Trying to build angular following the steps suggested in DEVELOPER.md doc.

I cloned the project git clone https://github.com/angular/angular.git and executed npm install (node 6.8.0 and npm 3.10.8):

C:\My\Dev\snippets\angular>npm install          
angular-srcs@2.1.0 C:\My\Dev\snippets\angular   
+-- @types/angularjs@1.5.13-alpha               
+-- @types/fs-extra@0.0.22-alpha                
+-- @types/hammerjs@2.0.22-alpha                
...
+-- zip-stream@0.5.2                                                                                          
| +-- lodash@3.2.0                                                                                            
| `-- readable-stream@1.0.33                                                                                  
`-- zone.js@0.6.25                                                                                            

npm ERR! Windows_NT 6.3.9600                                                                                  
npm ERR! argv "C:\\My\\Programs\\nodejs\\node.exe" "C:\\My\\Programs\\nodejs\\node_modules\\npm\\bin\\npm-cli.
js" "install"                                                                                                 
npm ERR! node v6.8.0                                                                                          
npm ERR! npm  v3.10.8                                                                                         
npm ERR! code EBADPLATFORM                                                                                    

npm ERR! notsup Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":
"win32","arch":"x64"})                                                                                        
npm ERR! notsup Valid OS:    darwin                                                                           
npm ERR! notsup Valid Arch:  any                                                                              
npm ERR! notsup Actual OS:   win32                                                                            
npm ERR! notsup Actual Arch: x64                                                                              

npm ERR! Please include the following file with any support request:                                          
npm ERR!     C:\My\Dev\snippets\angular\npm-debug.log                                                         

npm fails to install the deps.

Expected behavior

I expect no EBADPLATFORM error, installing the deps.
I tried npm install with cmd and git bash (2.10.1) shells: same result.

Minimal reproduction of the problem with instructions

See above how to reproduce the error.
Similar to #8815, but it is not the same, because I cloned the project.

What is the motivation / use case for changing the behavior?

I cloned locally the repo to contribute.

Please tell us about your environment:

Windows 8.1 (Version 6.3 - Build 9600)
node v6.8.0
npm v3.10.8

  • Angular version: master

  • Browser: [not applicable]

  • Language: [not applicable]

  • Node (for AoT issues): not applicable

@DzmitryShylovich
Copy link
Contributor

@DzmitryShylovich DzmitryShylovich commented Oct 14, 2016

fsevents is an OSX-only module and you cannot install it on Windows.

@b-strauss
Copy link

@b-strauss b-strauss commented Oct 14, 2016

@DzmitryShylovich maybe it would be a good idea to mention what the platform requirements are to build angular inside CONTRIBUTING.md ?

@albertosantini
Copy link
Contributor Author

@albertosantini albertosantini commented Oct 14, 2016

@DzmitryShylovich Usually, installing other packages, on Windows, you get the following messages for that dep:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin",
"arch":"any"} (current: {"os":"win32","arch":"x64"})                                                          

It is a warning, not an error and the other deps are installed.

What is your point? Cannot build angular on Windows?

@manklu
Copy link

@manklu manklu commented Oct 14, 2016

@albertosantini

Trying to build angular following the steps suggested in DEVELOPER.md doc.

Then you should have a look at the prerequisites.

Node.js, (version >=5.4.1 <6)

With Node.js 5.x you get the warning that @DzmitryShylovich mentioned.

I think this could be closed.

@pkozlowski-opensource
Copy link
Member

@pkozlowski-opensource pkozlowski-opensource commented Oct 14, 2016

Yeh, for now we require Node.js, (version >=5.4.1 <6)

@albertosantini
Copy link
Contributor Author

@albertosantini albertosantini commented Oct 14, 2016

Thanks for the reply.
I am sorry for the noise.

In package.json there is "node": ">= 5.4.1 < 7".

Indeed I read in the doc Node.js, (version >=5.4.1 <6), but I thought it was a typo or an outdated info.

@angular-automatic-lock-bot
Copy link

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented Sep 10, 2019

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.