Closed ghost closed 5 years ago
I have tried to install bs-platform first, it gave same error, then i tried to install this tool, it again gave same error, this is the output:
lambdef ~ λ sudo npm install -g reason-cli@latest-linux [sudo] password for root: /usr/local/bin/ocamlmerlin -> /usr/local/lib/node_modules/reason-cli/bin/ocamlmerlin /usr/local/bin/ocamlmerlin-reason -> /usr/local/lib/node_modules/reason-cli/bin/ocamlmerlin-reason /usr/local/bin/ocamlmerlin-server -> /usr/local/lib/node_modules/reason-cli/bin/ocamlmerlin-server /usr/local/bin/rtop -> /usr/local/lib/node_modules/reason-cli/bin/rtop /usr/local/bin/utop -> /usr/local/lib/node_modules/reason-cli/bin/utop /usr/local/bin/refmt -> /usr/local/lib/node_modules/reason-cli/bin/refmt /usr/local/bin/refmttype -> /usr/local/lib/node_modules/reason-cli/bin/refmttype /usr/local/bin/reactjs_jsx_ppx_v2 -> /usr/local/lib/node_modules/reason-cli/bin/reactjs_jsx_ppx_v2 > reason-cli@3.3.3-linux-1 postinstall /usr/local/lib/node_modules/reason-cli > node ./esyInstallRelease.js error: Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/reason-cli/3______________________________________________' npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! reason-cli@3.3.3-linux-1 postinstall: `node ./esyInstallRelease.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the reason-cli@3.3.3-linux-1 postinstall 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! /root/.npm/_logs/2018-11-04T09_36_37_822Z-debug.log lambdef ~ λ
I have tried to install bs-platform first, it gave same error, then i tried to install this tool, it again gave same error, this is the output: