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

default Gulp task hitting an error #582

Closed
barrars opened this issue Oct 12, 2015 · 14 comments
Closed

default Gulp task hitting an error #582

barrars opened this issue Oct 12, 2015 · 14 comments

Comments

@barrars
Copy link

barrars commented Oct 12, 2015

NPM install / gulp then error:

[09:24:53] Using gulpfile ~\amphtml\gulpfile.js
[09:24:53] Starting 'watch'...
Bundling amp-anim
Bundling amp-audio
Bundling amp-carousel
Bundling amp-fit-text
Bundling amp-iframe
Bundling amp-image-lightbox
Bundling amp-instagram
Bundling amp-lightbox
Bundling amp-slides
Bundling amp-twitter
Bundling amp-youtube
Processing ads.amp.html
Processing article.amp.html
Processing article-metadata/json-ld.amp.html
Processing article-metadata/microdata.amp.html
Processing everything.amp.html
Processing instagram.amp.html
Processing released.amp.html
Processing twitter.amp.html
Recompiling CSS.
Processing 3p/frame.max.html
[09:24:53] Finished 'watch' after 215 ms
[09:24:53] Starting 'default'...
[09:24:53] Finished 'default' after 18 μs
fs.js:848
return binding.symlink(preprocessSymlinkDestination(destination, type),
^
Error: EPERM, operation not permitted '\amphtml\dist.3p\current'
at Error (native)
at Object.fs.symlinkSync (fs.js:848:18)
at DestroyableTransform. (\amphtml\gulpfile.js:293:12)
at DestroyableTransform.emit (events.js:129:20)
at \amphtml\node_modules\gulp\node_modules\vinyl-fs\node_modules\through
2\node_modules\readable-stream\lib_stream_readable.js:965:16
at process._tickCallback (node.js:355:11)

@erwinmombay erwinmombay self-assigned this Oct 12, 2015
@erwinmombay
Copy link
Member

@barrars can you tell me the OS (and version) and node/npm version you have? Thanks!

@barrars
Copy link
Author

barrars commented Oct 12, 2015

Win8.1
node: 0.12.7 hmm didn't realize how long ago I installed this, also updating this
npm: 2.11.3
when I run

npm install 
I had some errors related to needing to install visual studios which I'm doing right now.

@erwinmombay
Copy link
Member

@barrars thanks. i don't have convenient access to a windows machine right now, i'll try and get a VM up and running to investigate.

@barrars
Copy link
Author

barrars commented Oct 12, 2015

I updated to node 4.1.2 and re-ran everything. I'm still getting an error about installing MS visual studio which is going slowly. I'll let you know.

I also don't understand the directions to map the localhost ....

@erwinmombay
Copy link
Member

hmm might not need to do that part, i didnt have to do that for mac osx either

@barrars
Copy link
Author

barrars commented Oct 12, 2015

still getting

[11:33:35] Finished 'watch' after 221 ms                                                                                   
[11:33:35] Starting 'default'...                                                                                           
[11:33:35] Finished 'default' after 9.29 μs                                                                                
fs.js:902                                                                                                                  
  return binding.symlink(preprocessSymlinkDestination(destination, type, path),                                            
                 ^                                                                                                         
                                                                                                                           
Error: EPERM: operation not permitted, symlink '.\1444674815295' -> 'C:\Users\scott\Desktop\localProject\amphtm            
l\dist.3p\current'                                                                                                         
    at Error (native)                                                                                                      
    at Object.fs.symlinkSync (fs.js:902:18)                                                                                
    at DestroyableTransform. (C:\Users\scott\Desktop\localProject\amphtml\gulpfile.js:293:12)                   
    at emitNone (events.js:72:20)                                                                                          
    at DestroyableTransform.emit (events.js:166:7)                                                                         
    at C:\Users\scott\Desktop\localProject\amphtml\node_modules\gulp\node_modules\vinyl-fs\node_modules\through2\node_modules\readable-stream\lib\_stream_readable.js:965:16
    at doNTCallback0 (node.js:408:9)
    at process._tickCallback (node.js:337:13)
PS C:\Users\scott\Desktop\localProject\amphtml>            

@erwinmombay
Copy link
Member

probably related nodejs/node-v0.x-archive#6342

EPERM means 'permission denied.' The default security policy allows only administrators to create symbolic links.

@barrars
Copy link
Author

barrars commented Oct 12, 2015

Doh, running with admin seems to have fixed it. Does

 gulp 
start a localhost ? here is my stdput. It just says finished.

PS C:\Users\scott\Desktop\localProject\amphtml> gulp
[11:42:07] Using gulpfile ~\Desktop\localProject\amphtml\gulpfile.js
[11:42:07] Starting 'watch'...
Bundling amp-anim
Bundling amp-audio
Bundling amp-carousel
Bundling amp-fit-text
Bundling amp-iframe
Bundling amp-image-lightbox
Bundling amp-instagram
Bundling amp-lightbox
Bundling amp-slides
Bundling amp-twitter
Bundling amp-youtube
Processing ads.amp.html
Processing article.amp.html
Processing article-metadata/json-ld.amp.html
Processing article-metadata/microdata.amp.html
Processing everything.amp.html
Processing instagram.amp.html
Processing released.amp.html
Processing twitter.amp.html
Recompiling CSS.
Processing 3p/frame.max.html
[11:42:08] Finished 'watch' after 234 ms
[11:42:08] Starting 'default'...
[11:42:08] Finished 'default' after 7.82 µs 

@barrars
Copy link
Author

barrars commented Oct 12, 2015

Update actually....I just ran tests and it seems to have passed. I can't run

 http-server -p 8000 -c-1 
though. The error says that task is not in the gulpfile. How do I launch a server for demos?

@erwinmombay
Copy link
Member

sorry, my reply got lost or something.

so you'll need to run npm i -g http-server to install http-server then you can run that comman

@erwinmombay
Copy link
Member

thanks for being patient btw, i'll try and update the docs or feel free to submit a PR to fix the docs :)

@barrars
Copy link
Author

barrars commented Oct 12, 2015

Awesome, thank you sir. I may include a little windows perspective later haha.

@erwinmombay
Copy link
Member

@barrars yeah that would be terrific 👯 if i can get my new gaming rig i can start testing on windows lol

@erwinmombay
Copy link
Member

@barrars closing this, feel free to submit a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants