Open b06357-redlands opened 4 years ago
What version of node are you using?
You can try using clasp globally instead of the local version. Try
npm i -g clasp
clasp login
And see if that works?
Node version is:
ubuntu@ip-172-31-38-16:~$ node -v
v8.17.0
ubuntu@ip-172-31-38-16:~$ npm -v
6.13.4
I installed node using the following command:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install nodejs
Anyways, after running the above commands as root I get this:
root@ip-172-31-38-16:/home/ubuntu/gdrive-copy# npm i -g clasp
> clasp@1.0.0 postinstall /usr/lib/node_modules/clasp
> node .
Installing @google/clasp...
Install failed. Must run with sudo.
+ clasp@1.0.0
updated 1 package in 0.915s
root@ip-172-31-38-16:/home/ubuntu/gdrive-copy# sudo npm i -g clasp
> clasp@1.0.0 postinstall /usr/lib/node_modules/clasp
> node .
Installing @google/clasp...
Install failed. Must run with sudo.
+ clasp@1.0.0
updated 1 package in 0.921s
root@ip-172-31-38-16:/home/ubuntu/gdrive-copy#
and when I run using user ubuntu, I get this:
ubuntu@ip-172-31-38-16:~/gdrive-copy$ npm i -g clasp
npm WARN checkPermissions Missing write access to /usr/lib/node_modules/clasp
npm WARN checkPermissions Missing write access to /usr/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/lib/node_modules/clasp
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules/clasp'
npm ERR! { Error: EACCES: permission denied, access '/usr/lib/node_modules/clasp'
npm ERR! stack: 'Error: EACCES: permission denied, access \'/usr/lib/node_modules/clasp\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/lib/node_modules/clasp' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2020-07-04T17_21_44_145Z-debug.log
ubuntu@ip-172-31-38-16:~/gdrive-copy$
I can't assist with debugging why clasp won't install on your machine, that is completely outside the realm of this application.
I am trying to host on my linux system