Forum Discussion
Stephan E.
Apr 02, 2018Copper Contributor
1st time SP-Framework, yeoman generator creates error while scaffolding
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)
Found the solution: I used nodejs 9, which is currently not supported. After downgrading to node 8 everything works.
- Stephan E.Copper Contributor
Found the solution: I used nodejs 9, which is currently not supported. After downgrading to node 8 everything works.
- ragavanrajanCopper Contributor
Stephan E. Tried downgrading to node 8. Still having issues.