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

install pain on Windows #66

Closed
trentm opened this issue Jan 18, 2013 · 5 comments
Closed

install pain on Windows #66

trentm opened this issue Jan 18, 2013 · 5 comments

Comments

@trentm
Copy link
Owner

trentm commented Jan 18, 2013

npm install bunyan fails on Windows if don't have Python:

C:\Users\Administrator\trent\tmp>npm install bunyan
npm WARN package.json foo@1.0.0 No README.md file found!
npm http GET https://registry.npmjs.org/bunyan
npm http 304 https://registry.npmjs.org/bunyan
npm http GET https://registry.npmjs.org/bunyan/-/bunyan-0.17.0.tgz
npm http 200 https://registry.npmjs.org/bunyan/-/bunyan-0.17.0.tgz
npm http GET https://registry.npmjs.org/dtrace-provider/0.2.4
npm http GET https://registry.npmjs.org/mv/0.0.4
npm http 200 https://registry.npmjs.org/mv/0.0.4
npm http GET https://registry.npmjs.org/mv/-/mv-0.0.4.tgz
npm http 200 https://registry.npmjs.org/dtrace-provider/0.2.4
npm http GET https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.2.4.
tgz
npm http 200 https://registry.npmjs.org/mv/-/mv-0.0.4.tgz
npm http 200 https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.2.4.
tgz

> dtrace-provider@0.2.4 install C:\Users\Administrator\trent\tmp\node_modules\bu
nyan\node_modules\dtrace-provider
> node-gyp rebuild


C:\Users\Administrator\trent\tmp\node_modules\bunyan\node_modules\dtrace-provide
r>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_mo
dules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib\configure.js:113:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node
-gyp\lib\configure.js:82:11
gyp ERR! stack     at Object.oncomplete (fs.js:297:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Administrator\trent\tmp\node_modules\bunyan\node_modules\d
trace-provider
gyp ERR! node -v v0.8.17
gyp ERR! node-gyp -v v0.8.2
gyp ERR! not ok
npm ERR! dtrace-provider@0.2.4 install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the dtrace-provider@0.2.4 install script.
npm ERR! This is most likely a problem with the dtrace-provider 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 dtrace-provider
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "bunyan"
npm ERR! cwd C:\Users\Administrator\trent\tmp
npm ERR! node -v v0.8.17
npm ERR! npm -v 1.2.0
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\Administrator\trent\tmp\npm-debug.log
npm ERR! not ok code 0

The intention of the dep on node-dtrace-provider is to encourage getting it. IMO, it shouldn't fail if Python is missing.

Also reported on another ticket (issue #60) is that Windows install fails if don't have a C compiler (e.g. Visual Studio) installed. Also want to fix that.

@gagle
Copy link

gagle commented Feb 13, 2013

Same problem here. I have to manually copy the readme, source, package and mv module in order to execute bunyan correctly.

@matthiasg
Copy link

still acts weirdly now i cannot get it compiled in any vs environment .. tried vs2008/vs2010/vs2012

npm install bunyan on windows does this >

node "C:\Program Files (x86)
\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(518,5): error MSB8008: Specified platform toolset (v110) is not installed or invalid. Please make sure that a supported PlatformToolset value is
selected. [......node_modules\bunyan\node_modules\dtrace-provider\build\DTracePro
viderStub.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: msbuild failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\buil
d.js:255:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "
rebuild"
gyp ERR! cwd c:\Development\private\matthiasg\hl7sender\node_modules\bunyan\node_modules\dtrace-provider
gyp ERR! node -v v0.8.20
gyp ERR! node-gyp -v v0.8.4
gyp ERR! not ok
npm ERR! dtrace-provider@0.2.7 install: node-gyp rebuild
npm ERR! cmd "/c" "node-gyp rebuild" failed with 1
npm ERR!
npm ERR! Failed at the dtrace-provider@0.2.7 install script.
npm ERR! This is most likely a problem with the dtrace-provider 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 dtrace-provider
npm ERR! There is likely additional logging output above.

@trentm
Copy link
Owner Author

trentm commented Oct 16, 2014

this shoudl be fixed with commit 6fc941c (to be released as bunyan 1.2.0). Please re-open if not.

@RonWang
Copy link

RonWang commented Aug 21, 2018

Hi @trentm ,
Our CLI is using the latest version of bunyan as dependency. However for windows users, when they install our CLI they still have this node-gyp Python issue.
Does it mean all windows users have to install windows-build-tools as node-gyp's installation instruction suggests?

@Ranguro
Copy link

Ranguro commented Jul 29, 2019

@trentm This issue is still reproducible with the latest stable version of Bunyan.

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

5 participants