I'm working through the faust.js documentation to create a headless WordPress site with Next.js. I can't get past step two: https://faustjs.org/docs/tutorial/learn-faust/#2-set-up-headless-wordpress-backend
When I run npm run wp-dev in the fresh install, I get the following error (full error below):
Error: Could not create directory "/var/www/html/wp-content/B&ce<%#Yl&k0-&2&=BKkTuOo,U%me@Uj$0U&": Invalid argument.
I've tried using npm versions 22, 21, 18, and 16. How can I troubleshoot this error?
NPM 21.4.0
Windows 11
Full error:
$ npm run wp-dev
> [email protected] wp-dev
> npx @wp-now/wp-now start --blueprint faust-tutorial-blueprint.json
Starting the server......
directory: C:\Users\jill\projects\faust-tutorial
mode: playground
php: 8.0
wp: 6.8.3 (resolved from alias: latest)
WordPress 6.8.3 folder already exists. Skipping download.
SQLite folder already exists. Skipping download.
blueprint steps: 1
Error: Could not create directory "/var/www/html/wp-content/B&ce<%#Yl&k0-&2&=BKkTuOo,U%me@Uj$0U&": Invalid argument.
at descriptor.value (C:\Users\jill\AppData\Local\npm-cache\_npx\7c65af5c66ec2a7e\node_modules\@php-wasm\node\index.cjs:72685:17)
at installAsset (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-playground/blueprints/index.js:1106:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.installPlugin (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-playground/blueprints/index.js:1157:34)
at async o (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-playground/blueprints/index.js:9440:30)
at async Object.run (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-playground/blueprints/index.js:9367:23)
at async runBlueprintSteps (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-playground/blueprints/index.js:9475:3)
at async startWPNow (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-now/wp-now/main.js:739:5)
at async startServer (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-now/wp-now/main.js:1003:42)
at async Object.handler (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-now/wp-now/main.js:1184:25) {
[cause]: [<generic error, no stack>] {
name: 'ErrnoError',
node: undefined,
setErrno: [Function (anonymous)],
errno: 28,
message: 'FS error'
}
}
Error: Error when executing the blueprint step #0 ({"step":"installPlugin","pluginZipFile":{"resource":"wordpress.org/plugins","slug":"wp-graphql"}}) : Could not create directory "/var/www/html/wp-content/B&ce<%#Yl&k0-&2&=BKkTuOo,U%me@Uj$0U&": Invalid argument.
at Object.run (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-playground/blueprints/index.js:9370:37)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runBlueprintSteps (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-playground/blueprints/index.js:9475:3)
... 2 lines matching cause stack trace ...
at async Object.handler (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-now/wp-now/main.js:1184:25) {
[cause]: Error: Could not create directory "/var/www/html/wp-content/B&ce<%#Yl&k0-&2&=BKkTuOo,U%me@Uj$0U&": Invalid argument.
at descriptor.value (C:\Users\jill\AppData\Local\npm-cache\_npx\7c65af5c66ec2a7e\node_modules\@php-wasm\node\index.cjs:72685:17)
at installAsset (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-playground/blueprints/index.js:1106:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.installPlugin (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-playground/blueprints/index.js:1157:34)
at async o (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-playground/blueprints/index.js:9440:30)
at async Object.run (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-playground/blueprints/index.js:9367:23)
at async runBlueprintSteps (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-playground/blueprints/index.js:9475:3)
at async startWPNow (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-now/wp-now/main.js:739:5)
at async startServer (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-now/wp-now/main.js:1003:42)
at async Object.handler (file:///C:/Users/jill/AppData/Local/npm-cache/_npx/7c65af5c66ec2a7e/node_modules/@wp-now/wp-now/main.js:1184:25) {
[cause]: [<generic error, no stack>] {
name: 'ErrnoError',
node: undefined,
setErrno: [Function (anonymous)],
errno: 28,
message: 'FS error'
}
}
}
Failed to start the server: Error when executing the blueprint step #0 ({"step":"installPlugin","pluginZipFile":{"resource":"wordpress.org/plugins","slug":"wp-graphql"}}) : Could not create directory "/var/www/html/wp-content/B&ce<%#Yl&k0-&2&=BKkTuOo,U%me@Uj$0U&": Invalid argument.
sh git clone [email protected]:wpengine/faustjs.git && cd faustjs/examples/next/tutorial && nvm use && npm install && npm run wp-devPlease let us know if this resolves the issue for you.shfrom the beginning, and added a version number afternvm usebecause my system requires it. Seeing the same error unfortunately.faust-tutorial-blueprint.jsonfile: ``` "plugins": ["wp-graphql", "faustwp"], ``` And then runnpm wp-nowto see if that works. If none of this works, let us know and we see what the next steps are.npm install @wp-now/wp-now@latestand then runnpm run wp-devto see if that works.