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

uid must be an unsigned int #83

Closed
freeman29 opened this issue Feb 3, 2016 · 10 comments
Closed

uid must be an unsigned int #83

freeman29 opened this issue Feb 3, 2016 · 10 comments

Comments

@freeman29
Copy link

pnpm is awesome.. but I'm having issue on installing.. please help.

Issue:
binding.chown(pathModule._makeLong(path), uid, gid, req);
^

TypeError: uid must be an unsigned int
at TypeError (native)
at fs.chown (fs.js:1082:11)
at /usr/local/lib/node_modules/pnpm.js/node_modules/tar-fs/index.js:215:7
at FSReqWrap.oncomplete (fs.js:83:15)

@rstacruz
Copy link
Member

rstacruz commented Feb 3, 2016

How'd you get that? Can I see your package.json?

On Wednesday, February 3, 2016, Francis Torda notifications@github.com
wrote:

pnpm is awesome but I'm having issue on installing please help

Issue:
bindingchown(pathModule_makeLong(path), uid, gid, req);
^

TypeError: uid must be an unsigned int
at TypeError (native)
at fschown (fsjs:1082:11)
at /usr/local/lib/node_modules/pnpmjs/node_modules/tar-fs/indexjs:215:7
at FSReqWraponcomplete (fsjs:83:15)


Reply to this email directly or view it on GitHub
#83.

@rstacruz
Copy link
Member

rstacruz commented Feb 3, 2016

And what's your os and npm/node versions?

$ npm version

On Wednesday, February 3, 2016, Rico Notifications <
notifications@ricostacruz.com> wrote:

How'd you get that? Can I see your package.json?

On Wednesday, February 3, 2016, Francis Torda <notifications@github.com
javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

pnpm is awesome but I'm having issue on installing please help

Issue:
bindingchown(pathModule_makeLong(path), uid, gid, req);
^

TypeError: uid must be an unsigned int
at TypeError (native)
at fschown (fsjs:1082:11)
at /usr/local/lib/node_modules/pnpmjs/node_modules/tar-fs/indexjs:215:7
at FSReqWraponcomplete (fsjs:83:15)


Reply to this email directly or view it on GitHub
#83.

@freeman29
Copy link
Author

OS: Linux Mint
Node: v5.2.0
npm: 3.3.12

package.json: i'm using react-slingshot starter kit

{
"name": "react-slingshot",
"version": "1.1.1",
"description": "Starter kit for creating apps with React and Redux",
"scripts": {
"prestart": "npm run remove-dist",
"start": "parallelshell "npm run lint:tools" "npm run test:watch" "npm run open:src"",
"open:src": "node tools/srcServer.js",
"open:dist": "node tools/distServer.js",
"lint:tools": "eslint webpack.config.js tools",
"clean-dist": "npm run remove-dist && mkdir dist",
"remove-dist": "node_modules/.bin/rimraf ./dist",
"build:html": "node tools/buildHtml.js",
"prebuild": "npm run clean-dist && npm run build:html",
"build": "npm run test && node tools/build.js && npm run open:dist",
"test": "cross-env NODE_ENV=test mocha --reporter progress --compilers js:babel/register --recursive "./src/*/.spec.js"",
"test:watch": "npm run test -- --watch"
},
"author": "Cory House",
"license": "MIT",
"dependencies": {
"object-assign": "4.0.1",
"react": "0.14.6",
"react-dom": "0.14.6",
"react-redux": "4.0.6",
"redux": "3.0.5"
},
"devDependencies": {
"babel": "5.8.23",
"babel-eslint": "4.1.7",
"babel-loader": "5.1.4",
"babel-plugin-react-display-name": "2.0.0",
"babel-plugin-react-transform": "1.1.1",
"browser-sync": "2.11.1",
"chai": "3.4.1",
"cheerio": "0.19.0",
"colors": "1.1.2",
"cross-env": "1.0.7",
"css-loader": "0.23.1",
"eslint": "1.10.3",
"eslint-loader": "1.2.0",
"eslint-plugin-react": "3.15.0",
"extract-text-webpack-plugin": "1.0.1",
"file-loader": "0.8.5",
"mocha": "2.3.4",
"node-sass": "3.4.2",
"parallelshell": "2.0.0",
"react-transform-catch-errors": "1.0.1",
"react-transform-hmr": "1.0.1",
"redbox-react": "1.2.0",
"rimraf": "2.5.0",
"sass-loader": "3.1.2",
"style-loader": "0.13.0",
"watch": "0.17.1",
"webpack": "1.12.11",
"webpack-dev-middleware": "1.4.0",
"webpack-hot-middleware": "2.6.0",
"yargs": "3.32.0"
},
"keywords:": [
"react",
"reactjs",
"hot",
"reload",
"hmr",
"live",
"edit",
"webpack",
"redux",
"flux",
"boilerplate",
"starter"
]
}

@Ingramz
Copy link

Ingramz commented Feb 3, 2016

Also possible to reproduce using following docker one-liner:
docker run --rm node:latest /bin/bash -c "npm install -g pnpm; pnpm install laravel-elixir@^4.0.0"

npm info using npm@3.3.12
npm info using node@v5.5.0

@rstacruz
Copy link
Member

rstacruz commented Feb 3, 2016

shudder... let's see.

@rstacruz
Copy link
Member

rstacruz commented Feb 3, 2016

also, super clever with that docker one-liner, kudos!

@brotchie
Copy link

Turns out this was an issue with the tar-stream package required by pnpm's tar-fs dependency. tar-stream didn't support parsing large uids and gids, instead returning NaN values.

I've submitted a pull request mafintosh/tar-stream#47 and this issue should be fixed once it's merged and published to npm.

This command now succeeds when you force npm to use my patched version of tar-stream:

docker run --rm node:latest /bin/bash -c "npm install -g brotchie/tar-stream pnpm; pnpm install laravel-elixir@^4.0.0"

@Ingramz
Copy link

Ingramz commented Feb 17, 2016

The change in tar-stream has been merged and and a release has been made, which has automatically propagated to pnpm, so I believe this issue can be closed.

@rstacruz
Copy link
Member

Nice work @brotchie!

@freeman29
Copy link
Author

Good job James..

On 18 February 2016 at 01:29, Rico Sta. Cruz notifications@github.com
wrote:

Nice work @brotchie https://github.com/brotchie!


Reply to this email directly or view it on GitHub
#83 (comment).

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

4 participants