Cannot install Fastboot on Windows
See original GitHub issueWhen attempting to install Fastboot on Windows 8.1, I get the error listed below. I’m not certain if this is an issue specific to running Fastboot in Windows or something else. Any suggestions for quick fixes I can try on my side would be appreciated.
Error message:
ember-fastboot-server@0.5.4 postinstall: `scripts/is-not-legacy-vm || npm install contextify@^0.1.11`
Exit status 1
Error: ember-fastboot-server@0.5.4 postinstall: `scripts/is-not-legacy-vm || npm install contextify@^0.1.11`
Exit status 1
at EventEmitter.<anonymous> (c:\www\br-cli\node_modules\ember-cli\node_modules\npm\lib\utils\lifecycle.js:217:16)
at emitTwo (events.js:87:13)
at EventEmitter.emit (events.js:172:7)
at ChildProcess.<anonymous> (c:\www\br-cli\node_modules\ember-cli\node_modules\npm\lib\utils\spawn.js:24:14)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
Full npm log after running ember install ember-cli-fastboot
:
$ ember install ember-cli-fastboot
version: 2.4.2
Installing packages for tooling via npm'scripts' is not recognized as an internal or external command,
operable program or batch file.
Installing packages for tooling via npm..
> contextify@0.1.11 install c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify
> node-gyp rebuild
jdetels@AGLP002780 c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify
$ if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Installing packages for tooling via npmBuilding the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Installing packages for tooling via npm... contextify.cc
Installing packages for tooling via npm...c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(274): error C2766: explicit specialization; 'v8::Local<v8:
:StringObject> NanNew<v8::StringObject,v8::Local<v8::String>>(v8::Local<v8::String>)' has already been defined [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot- server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(264): note: see previous definition of 'NanNew'
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(292): error C2995: 'v8::Local<v8::RegExp> NanNew(v8::Local <v8::String>,v8::RegExp::Flags)': function template has already been defined [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\bui ld\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(283): note: see declaration of 'NanNew'
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(304): error C2995: 'v8::Local<v8::RegExp> NanNew(v8::Local <v8::String>,v8::RegExp::Flags)': function template has already been defined [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\bui ld\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(295): note: see declaration of 'NanNew'
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(481): error C2039: 'ExternalAsciiStringResource': is not a member of 'v8::String' [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\users\jdetels\.node-gyp\4.2.2\include\node\v8.h(2081): note: see declaration of 'v8::String'
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(481): error C2065: 'ExternalAsciiStringResource': undeclar ed identifier [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(481): error C2065: 'resource': undeclared identifier [c:\w ww\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(481): error C2433: 'NanNew': '__forceinline' not permitted on data declarations [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(481): error C2365: 'NanNew': redefinition; previous defini tion was 'function' [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(481): error C2448: 'NanNew': function-style initializer ap pears to be a function definition [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(497): error C2995: 'v8::Local<T> _NanEscapeScopeHelper(v8: :Local<T>)': function template has already been defined [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj ]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(490): note: see declaration of '_NanEscapeScopeHelper'
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(755): error C3083: 'smalloc': the symbol to the left of a
'::' must be a type [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(755): error C2039: 'FreeCallback': is not a member of 'nod e' [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
C:\Users\jdetels\.node-gyp\4.2.2\include\node\node_object_wrap.h(8): note: see declaration of 'node'
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(755): error C2061: syntax error: identifier 'FreeCallback' [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(759): error C2065: 'callback': undeclared identifier [c:\w ww\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(759): error C2065: 'hint': undeclared identifier [c:\www\b r-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(766): error C2665: 'node::Buffer::New': none of the 4 over loads could convert all the argument types [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
C:\Users\jdetels\.node-gyp\4.2.2\include\node\node_buffer.h(43): note: could be 'v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,char *,size_t)'
C:\Users\jdetels\.node-gyp\4.2.2\include\node\node_buffer.h(31): note: or 'v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,v8::Local<v8::String>,node::encoding)'
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(766): note: while trying to match the argument list '(v8
::Isolate *, const char *, uint32_t)'
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(770): error C2440: 'return': cannot convert from 'v8::Mayb eLocal<v8::Object>' to 'v8::Local<v8::Object>' [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(770): note: No constructor could take the source type, o
r constructor overload resolution was ambiguous
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(777): error C2039: 'Use': is not a member of 'node::Buffer ' [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
C:\Users\jdetels\.node-gyp\4.2.2\include\node\node_buffer.h(8): note: see declaration of 'node::Buffer'
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(777): error C3861: 'Use': identifier not found [c:\www\br- cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(2103): error C2039: 'IsExternalAscii': is not a member of
'v8::String' [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\users\jdetels\.node-gyp\4.2.2\include\node\v8.h(2081): note: see declaration of 'v8::String'
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(2104): error C2039: 'ExternalAsciiStringResource': is not
a member of 'v8::String' [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\users\jdetels\.node-gyp\4.2.2\include\node\v8.h(2081): note: see declaration of 'v8::String'
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(2104): error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(2104): error C2143: syntax error: missing ';' before '*' [ c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(2104): error C2065: 'ext': undeclared identifier [c:\www\b r-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(2105): error C2065: 'ext': undeclared identifier [c:\www\b r-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(2105): error C2039: 'GetExternalAsciiStringResource': is n ot a member of 'v8::String' [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\users\jdetels\.node-gyp\4.2.2\include\node\v8.h(2081): note: see declaration of 'v8::String'
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(2106): error C2065: 'ext': undeclared identifier [c:\www\b r-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(2106): error C2227: left of '->data' must point to class/s truct/union/generic type [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(2106): note: type is 'unknown-type'
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(2107): error C2065: 'ext': undeclared identifier [c:\www\b r-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(2107): error C2227: left of '->length' must point to class /struct/union/generic type [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\build\contextify.vcxproj]
c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify\node_modules\nan\nan.h(2107): note: type is 'unknown-type'
..\src\contextify.cc(31): error C2039: 'ContextDisposedNotification': is not a member of 'v8::V8' [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_m odules\contextify\build\contextify.vcxproj]
c:\users\jdetels\.node-gyp\4.2.2\include\node\v8.h(5972): note: see declaration of 'v8::V8'
..\src\contextify.cc(31): error C3861: 'ContextDisposedNotification': identifier not found [c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\ contextify\build\contextify.vcxproj]
Installing packages for tooling via npmgyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\node_modules\contextify
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "contextify@0.1.11"
npm ERR! node v4.2.2
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! contextify@0.1.11 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.11 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls contextify
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! c:\www\br-cli\node_modules\ember-cli-fastboot\node_modules\ember-fastboot-server\npm-debug.log
ember-fastboot-server@0.5.4 postinstall: `scripts/is-not-legacy-vm || npm install contextify@^0.1.11`
Exit status 1
Error: ember-fastboot-server@0.5.4 postinstall: `scripts/is-not-legacy-vm || npm install contextify@^0.1.11`
Exit status 1
at EventEmitter.<anonymous> (c:\www\br-cli\node_modules\ember-cli\node_modules\npm\lib\utils\lifecycle.js:217:16)
at emitTwo (events.js:87:13)
at EventEmitter.emit (events.js:172:7)
at ChildProcess.<anonymous> (c:\www\br-cli\node_modules\ember-cli\node_modules\npm\lib\utils\spawn.js:24:14)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (7 by maintainers)
Top Results From Across the Web
Cant install Fastboot Driver - XDA Forums
Click the Start button, choose the Power button, press Shift and click Restart. · After Windows enters WinRE, go to Troubleshoot > Advanced ......
Read more >Fastboot Not Detecting Device on Windows 10 - Beebom
If Fastboot is not detecting devices on Windows 10/11, follow our guide and install the fastboot drivers for OnePlus, Xiaomi, Realme & more....
Read more >Unable to install fastboot driver in Windows 10 v2004
I have try fastboot devices and it cant find my 10 plus device. I have tried to install the driver in Windows 10...
Read more >How to Install ADB and Fastboot on Windows: All the methods ...
Go to device manager, find your device called Android or Android1.0 or something. It will have a yellow ! next to it. Click...
Read more >How To Install ADB and Fastboot in Windows - YouTube
Hi friends in this video I will show you how to install ADB and fastboot in your windows system so that you can...
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
Solved once https://github.com/ember-fastboot/ember-fastboot-server/pull/48 is merged
Issue is resolved. Was able to successfully install from Github (NPM still needs to be updated). Thanks, @tomdale for the rapid resolution.