Open GoogleCodeExporter opened 8 years ago
Greetings! This looks like it may be caused by the maxpath limitation on
Windows - this happens sometimes with NPM modules that have a lot of nested
dependencies.
One fix might be to install NPM 3, which flattens dependencies:
npm install -g npm@3
Hopefully this fixes things up for you. Let us know how it goes!
Original comment by beckw...@google.com
on 25 Jan 2016 at 6:04
Thanks for yr prompt reply.
Installed npm3, same error.
Changed project location to c:\, and I was able to deploy.
Thanks again.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=s
ig-email&utm_content=webmail>
This
email has been sent from a virus-free computer protected by Avast.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=s
ig-email&utm_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Original comment by mikeribe...@gmail.com
on 26 Jan 2016 at 2:01
Internal issue filed for the c:\ workaround. Thanks
Original comment by gsfow...@google.com
on 27 Jan 2016 at 1:39
Issue 527 has been merged into this issue.
Original comment by z...@google.com
on 16 Feb 2016 at 11:11
Having the same issue, did npm install -g npm@3 and move directory to c:/,
still doesnt work
Original comment by jamesw...@amuzedesign.com
on 2 Mar 2016 at 4:56
If you're still seeing this problem - can you please share the console output?
Could you also just do a quick `npm -v` to make sure we're seeing the same
thing?
Original comment by beckw...@google.com
on 2 Mar 2016 at 4:28
Issue 634 has been merged into this issue.
Original comment by z...@google.com
on 8 Mar 2016 at 5:00
Hello, thank you for the quick response to my issue (634).
I installed npm 3 (npm -v returns 3.8.0)
I first tried moving the 2-structured-data (containing app.js, package.json,
app.yaml, etc.) to C:\ but that didn't work, here was the console output:
******
ERROR: gcloud crashed (WindowsError): [Error 3] The system cannot find the path
specified:
'C:\\2-structured-data\\node_modules\\gcloud\\node_modules\\gce-images\\node_mod
ules\\google-auto-auth\\node_modules\\google-auth-library\\node_modules\\jws\\no
de_modules\\base64url\\node_modules\\concat-stream\\node_modules\\readable-strea
m\\node_modules\\core-util-is\\float.patch'
******
I then tried emptying the 2-structured-data file and moving the contents
themselves to C:\, at which point I was prompted to grant administrator
permissions to the files. This seemed like a step in the right direction,
though gcloud preview app deploy still didn't work, here was the console output
leading upto and including the error:
*******
Verifying that Managed VMs are enabled and ready.
Provisioning remote build service.
Copying certificates for secure access. You may be prompted to create an SSH
keypair.
Building and pushing image for module [default]
Beginning teardown of remote build environment (this may take a few seconds).
ERROR: gcloud crashed (IOError): [Errno 13] Permission denied: u'C:\\Dockerfile'
*******
Searching for a "Dockerfile" in C: doesn't return any results. Any thoughts?
Thanks again!
Original comment by daniel.c...@gmail.com
on 8 Mar 2016 at 6:22
We're still investigating workarounds for this issue–it's due to a Windows
MAX_PATH limitation.
Thank you for sharing your command output; it should help us diagnose.
Original comment by z...@google.com
on 8 Mar 2016 at 6:25
Thank you! I'll continue to try my own workarounds and share my command output
if it helps....Btw, I did find a "Dockerfile" in my Google Cloud SDK folder. I
tried moving it to C: and deploying again. I got this error:
ERROR: (gcloud.preview.app.deploy) There is a Dockerfile in the current
directory, and the runtime field in C:\app.yaml is currently set to [runtime:
nodejs]. To use your Dockerfile to build a custom runtime, set the runtime
field in C:\app.yaml to [runtime: custom]. To continue using the [nodejs]
runtime, please omit the Dockerfile from this directory.
I tried setting runtime:custom in the yaml file, and when I tried gcloud
preview app deploy again, I got this error:
ERROR: gcloud crashed (IOError): [Errno 13] Permission denied: 'C:\\Program
Files (x86)\\InstallShield Installation
Information\\{40BF1E83-20EB-11D8-97C5-0009C5020658}\\setup.ilg'
Hopefully, this helps!
Original comment by daniel.c...@gmail.com
on 8 Mar 2016 at 7:23
Issue 641 has been merged into this issue.
Original comment by z...@google.com
on 11 Mar 2016 at 1:35
Original issue reported on code.google.com by
mikeribe...@gmail.com
on 25 Jan 2016 at 4:29