SOLVED

1st time SP-Framework, yeoman generator creates error while scaffolding

%3CLINGO-SUB%20id%3D%22lingo-sub-178339%22%20slang%3D%22en-US%22%3E1st%20time%20SP-Framework%2C%20yeoman%20generator%20creates%20error%20while%20scaffolding%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-178339%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20want%20to%20deep%20dive%20into%20development%20with%20SP%20framework%20and%20I%20just%20setup%20my%20dev%20environment.%20While%20creating%20the%20first%20project%20with%20yeoman%2C%20many%20warnings%20(because%20of%20deprecated%20packages)%20and%20an%20error%20occurs.%20yeoman%20process%20never%20finishes.%3C%2FP%3E%0A%3CP%3EHow%20can%20I%20fix%20this%3F%20Thanks%20a%20lot%20in%20advance!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20the%20last%20output%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3EWARN%20tar%20ENOENT%3A%20no%20such%20file%20or%20directory%2C%20open%20'%2FUsers%2Fselsner%2Fsource%2Fsp_framework%2Fhello%2Fnode_modules%2F.staging%2F%40microsoft%2Fsp-webpart-workbench-1c0b2054%2Fdist%2F1.toolbox_7007eb6cf2cefb719a42.js'%0Aevents.js%3A165%0A%20%20%20%20%20%20throw%20er%3B%20%2F%2F%20Unhandled%20'error'%20event%0A%20%20%20%20%20%20%5E%0A%0AError%20%5BERR_STREAM_WRITE_AFTER_END%5D%3A%20write%20after%20end%0A%20%20%20%20at%20writeAfterEnd%20(_stream_writable.js%3A241%3A12)%0A%20%20%20%20at%20PassThrough.Writable.write%20(_stream_writable.js%3A291%3A5)%0A%20%20%20%20at%20PassThrough.Writable.end%20(_stream_writable.js%3A576%3A10)%0A%20%20%20%20at%20ReadEntry.entry.on%20(%2Fusr%2Flocal%2Flib%2Fnode_modules%2Fnpm%2Fnode_modules%2Fpacote%2Flib%2Fextract-stream.js%3A19%3A41)%0A%20%20%20%20at%20ReadEntry.emit%20(events.js%3A185%3A15)%0A%20%20%20%20at%20ReadEntry.emit%20(%2Fusr%2Flocal%2Flib%2Fnode_modules%2Fnpm%2Fnode_modules%2Ftar%2Fnode_modules%2Fminipass%2Findex.js%3A287%3A25)%0A%20%20%20%20at%20ReadEntry.%5BmaybeEmitEnd%5D%20(%2Fusr%2Flocal%2Flib%2Fnode_modules%2Fnpm%2Fnode_modules%2Ftar%2Fnode_modules%2Fminipass%2Findex.js%3A240%3A12)%0A%20%20%20%20at%20ReadEntry.end%20(%2Fusr%2Flocal%2Flib%2Fnode_modules%2Fnpm%2Fnode_modules%2Ftar%2Fnode_modules%2Fminipass%2Findex.js%3A153%3A27)%0A%20%20%20%20at%20Unpack.%5BconsumeBody%5D%20(%2Fusr%2Flocal%2Flib%2Fnode_modules%2Fnpm%2Fnode_modules%2Ftar%2Flib%2Fparse.js%3A210%3A13)%0A%20%20%20%20at%20Unpack.%5BconsumeChunkSub%5D%20(%2Fusr%2Flocal%2Flib%2Fnode_modules%2Fnpm%2Fnode_modules%2Ftar%2Flib%2Fparse.js%3A391%3A40)%0A%20%20%20%20at%20Unpack.%5BconsumeChunk%5D%20(%2Fusr%2Flocal%2Flib%2Fnode_modules%2Fnpm%2Fnode_modules%2Ftar%2Flib%2Fparse.js%3A362%3A30)%0A%20%20%20%20at%20Unzip.(anonymous%20function).on.chunk%20(%2Fusr%2Flocal%2Flib%2Fnode_modules%2Fnpm%2Fnode_modules%2Ftar%2Flib%2Fparse.js%3A291%3A59)%0A%20%20%20%20at%20Unzip.emit%20(events.js%3A180%3A13)%0A%20%20%20%20at%20Unzip.emit%20(%2Fusr%2Flocal%2Flib%2Fnode_modules%2Fnpm%2Fnode_modules%2Ftar%2Fnode_modules%2Fminipass%2Findex.js%3A287%3A25)%0A%20%20%20%20at%20Unzip.write%20(%2Fusr%2Flocal%2Flib%2Fnode_modules%2Fnpm%2Fnode_modules%2Ftar%2Fnode_modules%2Fminipass%2Findex.js%3A90%3A17)%0A%20%20%20%20at%20Unzip.write%20(%2Fusr%2Flocal%2Flib%2Fnode_modules%2Fnpm%2Fnode_modules%2Ftar%2Fnode_modules%2Fminizlib%2Findex.js%3A284%3A29)%0AEmitted%20'error'%20event%20at%3A%0A%20%20%20%20at%20writeAfterEnd%20(_stream_writable.js%3A243%3A10)%0A%20%20%20%20at%20PassThrough.Writable.write%20(_stream_writable.js%3A291%3A5)%0A%20%20%20%20%5B...%20lines%20matching%20original%20stack%20trace%20...%5D%0A%20%20%20%20at%20Unzip.write%20(%2Fusr%2Flocal%2Flib%2Fnode_modules%2Fnpm%2Fnode_modules%2Ftar%2Fnode_modules%2Fminizlib%2Findex.js%3A284%3A29)%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-178339%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-178388%22%20slang%3D%22en-US%22%3ERe%3A%201st%20time%20SP-Framework%2C%20yeoman%20generator%20creates%20error%20while%20scaffolding%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-178388%22%20slang%3D%22en-US%22%3E%3CP%3EFound%20the%20solution%3A%20I%20used%20nodejs%209%2C%20which%20is%20currently%20not%20supported.%20After%20downgrading%20to%20node%208%20everything%20works.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-701443%22%20slang%3D%22en-US%22%3ERe%3A%201st%20time%20SP-Framework%2C%20yeoman%20generator%20creates%20error%20while%20scaffolding%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-701443%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F132458%22%20target%3D%22_blank%22%3E%40Stephan%20E.%3C%2FA%3E%26nbsp%3BTried%20downgrading%20to%20node%208.%20Still%20having%20issues.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi there,

 

I want to deep dive into development with SP framework and I just setup my dev environment. While creating the first project with yeoman, many warnings (because of deprecated packages) and an error occurs. yeoman process never finishes.

How can I fix this? Thanks a lot in advance!

 

This is the last output:

 

 

WARN tar ENOENT: no such file or directory, open '/Users/selsner/source/sp_framework/hello/node_modules/.staging/@microsoft/sp-webpart-workbench-1c0b2054/dist/1.toolbox_7007eb6cf2cefb719a42.js'
events.js:165
      throw er; // Unhandled 'error' event
      ^

Error [ERR_STREAM_WRITE_AFTER_END]: write after end
    at writeAfterEnd (_stream_writable.js:241:12)
    at PassThrough.Writable.write (_stream_writable.js:291:5)
    at PassThrough.Writable.end (_stream_writable.js:576:10)
    at ReadEntry.entry.on (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/extract-stream.js:19:41)
    at ReadEntry.emit (events.js:185:15)
    at ReadEntry.emit (/usr/local/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:287:25)
    at ReadEntry.[maybeEmitEnd] (/usr/local/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:240:12)
    at ReadEntry.end (/usr/local/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:153:27)
    at Unpack.[consumeBody] (/usr/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:210:13)
    at Unpack.[consumeChunkSub] (/usr/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:391:40)
    at Unpack.[consumeChunk] (/usr/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:362:30)
    at Unzip.(anonymous function).on.chunk (/usr/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:291:59)
    at Unzip.emit (events.js:180:13)
    at Unzip.emit (/usr/local/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:287:25)
    at Unzip.write (/usr/local/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:90:17)
    at Unzip.write (/usr/local/lib/node_modules/npm/node_modules/tar/node_modules/minizlib/index.js:284:29)
Emitted 'error' event at:
    at writeAfterEnd (_stream_writable.js:243:10)
    at PassThrough.Writable.write (_stream_writable.js:291:5)
    [... lines matching original stack trace ...]
    at Unzip.write (/usr/local/lib/node_modules/npm/node_modules/tar/node_modules/minizlib/index.js:284:29)

 

2 Replies
Highlighted
Best Response confirmed by Beau Cameron (MVP)
Solution

Found the solution: I used nodejs 9, which is currently not supported. After downgrading to node 8 everything works.

Highlighted

@Stephan E. Tried downgrading to node 8. Still having issues.