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

Can't install in Ubuntu #6

Closed
elohffa opened this issue Jan 16, 2019 · 10 comments
Closed

Can't install in Ubuntu #6

elohffa opened this issue Jan 16, 2019 · 10 comments

Comments

@elohffa
Copy link

elohffa commented Jan 16, 2019

I shoot a command in the terminal : sudo npm i -g @worldsibu/hurley

it report a error , the error message is said

/usr/local/bin/hurl -> /usr/local/lib/node_modules/@worldsibu/hurley/dist/command.js

pkcs11js@1.0.17 install /usr/local/lib/node_modules/@worldsibu/hurley/node_modules/pkcs11js
node-gyp rebuild

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@worldsibu/hurley/node_modules/pkcs11js/build'
gyp ERR! System Linux 4.15.0-43-generic
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/@worldsibu/hurley/node_modules/pkcs11js
gyp ERR! node -v v8.15.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pkcs11js@1.0.17 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pkcs11js@1.0.17 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/suntaiwai/.npm/_logs/2019-01-16T14_24_46_054Z-debug.log

@walmon
Copy link
Member

walmon commented Jan 16, 2019 via email

@walmon
Copy link
Member

walmon commented Jan 16, 2019

Sorry, I missed the sudo part. Maybe uninstall and reinstall? That doesn't look like a problem related to NPM nor Hurley.

@elohffa
Copy link
Author

elohffa commented Jan 17, 2019

I use sudo before npm , however ,it still have problem .

suntaiwai@ubuntu:~$ sudo npm i -g @worldsibu/hurley
[sudo] password for suntaiwai:
npm WARN deprecated @types/winston@2.4.4: This is a stub types definition. winston provides its own type definitions, so you do not need this installed.
/usr/local/bin/hurl -> /usr/local/lib/node_modules/@worldsibu/hurley/dist/command.js

pkcs11js@1.0.17 install /usr/local/lib/node_modules/@worldsibu/hurley/node_modules/pkcs11js
node-gyp rebuild

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@worldsibu/hurley/node_modules/pkcs11js/build'
gyp ERR! System Linux 4.15.0-43-generic
gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/@worldsibu/hurley/node_modules/pkcs11js
gyp ERR! node -v v8.15.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pkcs11js@1.0.17 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pkcs11js@1.0.17 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/suntaiwai/.npm/_logs/2019-01-17T01_22_46_860Z-debug.log

@walmon
Copy link
Member

walmon commented Jan 17, 2019

Looks like a known issue in NPM.

sudo npm install -g electron --unsafe-perm=true

Reference: npm/npm#17268

@elohffa
Copy link
Author

elohffa commented Jan 17, 2019

I use your command sudo npm install -g electron --unsafe-perm=true to install package , it look like fine , but when i sudo npm i -g @worldsibu/hurley , it report same error ..

@walmon
Copy link
Member

walmon commented Jan 17, 2019

Sorry, it was just a reference, what you have to actually run is

sudo npm install -g @worldsibu/hurley --unsafe-perm=true

@elohffa
Copy link
Author

elohffa commented Jan 17, 2019

yes. I want to report , i use sudo npm i -g @worldsibu/hurley --unsafe-perm=true --allow-root , then the package can install without error

@elohffa
Copy link
Author

elohffa commented Jan 17, 2019

Thanks for your help

@elohffa elohffa closed this as completed Jan 17, 2019
@walmon
Copy link
Member

walmon commented Jan 17, 2019

Awesome! You are very welcome.

@insafachour
Copy link

hello
i have the same problem and i try your solution but i still having errors

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

3 participants