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

Error: EACCES: permission denied (Ubuntu 16.04 x86_64) #1810

Closed
raould opened this issue Feb 8, 2018 · 4 comments
Closed

Error: EACCES: permission denied (Ubuntu 16.04 x86_64) #1810

raould opened this issue Feb 8, 2018 · 4 comments

Comments

@raould
Copy link

raould commented Feb 8, 2018

(of course w/out sudo the "-g" npm can't write to the global npm package directory.)

$ sudo npm install -g bs-platform
...
fs.js:784
  return binding.rename(pathModule.toNamespacedPath(oldPath),
                 ^

Error: EACCES: permission denied, rename '/usr/lib/node_modules/bs-platform/vendor/ninja-build/ninja.linux64' -> '/usr/lib/nfs.js:784
  return binding.rename(pathModule.toNamespacedPath(oldPath),
                 ^

Error: EACCES: permission denied, rename '/usr/lib/node_modules/bs-platform/vendor/ninja-build/ninja.linux64' -> '/usr/lib/node_modules/bs-platform/lib/ninja.exe'
ode_modules/bs-platform/lib/ninja.exe'

2018-02-08T07_39_25_312Z-debug.log

@rajatdhoot123
Copy link

Same Its not working with global install till then you can install locally.

step to install locally

--> npm install bs-platform

then to run locally : ./node_modules/.bin/bsb -init my-first-app -theme basic-reason

this command will create my-first-app inside your installation folder then

cd my-first-app

then use npm start

It will compile and create the file

then node src/demo.bs.js
you get the output on console like : Hello, BuckleScript and Reason!

@raould
Copy link
Author

raould commented Feb 9, 2018

@jaredly
Copy link
Contributor

jaredly commented Jun 14, 2018

This probably belongs on the bucklescript repo. Alternatively, you could ask for help on the forum.

@jaredly jaredly closed this as completed Jun 14, 2018
@bsansouci
Copy link
Contributor

The answer is https://docs.npmjs.com/getting-started/fixing-npm-permissions. Idk if there's anything we can do...

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