-
Notifications
You must be signed in to change notification settings - Fork 19
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
Comments
That is a permissions issue, that depends on how you have configured your
computer. It is common to require sudo for installation of global packages.
So `sudo npm ...` should do.
…On Wed, Jan 16, 2019, 8:26 AM elohffa ***@***.*** wrote:
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 ->
***@***.***/hurley/dist/command.js
***@***.*** install
***@***.***/hurley/node_modules/pkcs11js
node-gyp rebuild
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir
***@***.***/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
***@***.***/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! ***@***.*** install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ***@***.*** 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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFCcrPMRIIva88fqMOmGwYvoujj7rfRmks5vDzatgaJpZM4aDLkZ>
.
|
Sorry, I missed the |
I use sudo before npm , however ,it still have problem . suntaiwai@ubuntu:~$ sudo npm i -g @worldsibu/hurley
gyp ERR! configure error npm ERR! A complete log of this run can be found in: |
Looks like a known issue in NPM.
Reference: npm/npm#17268 |
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 .. |
Sorry, it was just a reference, what you have to actually run is
|
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 |
Thanks for your help |
Awesome! You are very welcome. |
hello |
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
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
The text was updated successfully, but these errors were encountered: