The package won't build on the npm install if Windows user's name contains czech special character like "ř" for example #508

Closed
capaj opened this Issue Dec 18, 2012 · 2 comments

Projects

None yet

3 participants

Contributor
capaj commented Dec 18, 2012

Hi, I am trying to get the package from Windows node.js command prompt. Node.js version is 0.8.16-x64. Here is the output:

c:\Program Files\nodejs>npm install socket.io-client
npm http GET https://registry.npmjs.org/socket.io-client
npm http 200 https://registry.npmjs.org/socket.io-client
npm http GET https://registry.npmjs.org/uglify-js/1.2.5
npm http GET https://registry.npmjs.org/ws
npm http GET https://registry.npmjs.org/xmlhttprequest/1.4.2
npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http 304 https://registry.npmjs.org/uglify-js/1.2.5
npm http 304 https://registry.npmjs.org/ws
npm http 304 https://registry.npmjs.org/xmlhttprequest/1.4.2
npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http GET https://registry.npmjs.org/zeparser/0.0.5
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/tinycolor
npm http GET https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/zeparser/0.0.5
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/tinycolor

ws@0.4.25 install c:\Program Files\nodejs\node_modules\socket.io-client\node_m
odules\ws
(node-gyp rebuild 2> builderror.log) || (exit 0)

c:\Program Files\nodejs\node_modules\socket.io-client\node_modules\ws>node "c:\P
rogram Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-g
yp\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\nodejs\node_modules\socket.io-client\node_modules\ws\build\buf
ferutil.vcxproj(43,48): error MSB4025: The project file could not be loaded. In
valid character in the given encoding. Line 43, position 48.
c:\Program Files\nodejs\node_modules\socket.io-client\node_modules\ws\build\val
idation.vcxproj(43,48): error MSB4025: The project file could not be loaded. In
valid character in the given encoding. Line 43, position 48.
socket.io-client@0.9.11 node_modules\socket.io-client
├── xmlhttprequest@1.4.2
├── uglify-js@1.2.5
├── ws@0.4.25 (tinycolor@0.0.1, options@0.0.3, commander@0.6.1)
└── active-x-obfuscator@0.0.1 (zeparser@0.0.5)

c:\Program Files\nodejs>

And the line in the C:\Program Files\nodejs\node_modules\socket.io-client\node_modules\ws\build\bufferutil.vcxproj the problem is looks like this:
C:\Users\Jiří.node-gyp\0.8.16\src;C:\Users\Jiří.node-gyp\0.8.16\deps\uv\include;C:\Users\Jiří.node-gyp\0.8.16\deps\v8\include;%(AdditionalIncludeDirectories)

So is this a problem of npm or could it be fixed on your side, in this package?

Creoi commented Apr 15, 2013

The only solution that worked here for me was the full system reinstall. The issue is not just with the czech special characters but with any other non-English letters. Described on blog: http://t.co/7Vz3U4xvK7

Contributor
capaj commented Apr 16, 2013

I solved it by creating new user and abandoning the one with special characters. That was essentially same as full reinstall.

@rauchg rauchg closed this Nov 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment