Nowman Mohd
Nowman Mohd

Reputation: 71

Not able to push files using clasp push command

I am able to get the files using clasp pull command but not able to update the files using clasp push command. It says "No files to push". When I run command clasp status then it shows all of my project files in "Ignore files". Previously it was working completely and the problem occurred yesterday when I changed my laptop. I also tried making .claspignore file and it also did not work.

For reference, please see the screenshot.Photo

Please help.

Upvotes: 3

Views: 1348

Answers (2)

Max Makhrov
Max Makhrov

Reputation: 18707

In my case clasp pull sroped woring with Node V20 (Windows)

Had to unstall mvm and downgrade node to V18

Installing nvm-windows

  1. Download nvm-windows: Go to the nvm-windows repository and download the latest nvm-setup.exe file from the Releases section.

  2. Run PowerShell as an administer to run 2 commands:

nvm install 18

nvm use 18

  1. Run clasp pull again

Upvotes: 0

marcus.salinas
marcus.salinas

Reputation: 993

I think for me I found the issue after using trying

clasp version "YOUR_VERSION_STRING". 

I got a console message to enable API access. Once I enabled that I was able to make pushes. It's funny because I was able to clone and pull just fine.

So this is the Settings URL and then make sure that "Google Apps Script API Access" is on.

Upvotes: 2

Related Questions