Comments (9)
Oh interesting! I guess this is an issue with running an npm package from the command line on Windows maybe? I don’t have a Windows machine to test on unfortunately.
I’d be interested to see if npx netlify-cms-proxy-server
in the spawn
call might work if it’s an issue with finding the command?
from astro-netlify-cms.
Think that windows need a "shell = true".
this seems to work for me:
'astro:server:start': () => {
const proxy = spawn('npx netlify-cms-proxy-server', { stdio: 'inherit', shell: process.platform == 'win32' });
process.on('exit', () => proxy.kill());
},
from astro-netlify-cms.
Thanks for investigating! Would you like to make this change in a PR?
from astro-netlify-cms.
I can't test if this solution works on Linux or OSX, so it could potentially introduce more bugs than it fixes :P
from astro-netlify-cms.
I can test it on macOS and can take a look at setting up some CI tests for Linux!
from astro-netlify-cms.
Seeing the same issue on Windows.
@delucis & @preetamslot is there an ETA on the pull request merge?
Thanks!
from astro-netlify-cms.
I think #15 was going to address two separate things, so I’ve pushed @preetamslot’s simple fix for Windows as a separate commit for now. Released in v0.2.0 — let me know how you get on!
from astro-netlify-cms.
I have the same issue with Yarn (classic or stable) on macOS.
pnpm works
git clone delucis/astro-netlify-cms-starter
yarn
...
% yarn dev
🚀 astro v1.5.2 started in 85ms
┃ Local http://localhost:3001/
┃ Network use --host to expose
node:events:491
throw er; // Unhandled 'error' event
^
Error: spawn netlify-cms-proxy-server ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:285:19)
at onErrorNT (node:internal/child_process:483:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
at onErrorNT (node:internal/child_process:483:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn netlify-cms-proxy-server',
path: 'netlify-cms-proxy-server',
spawnargs: []
}
Node.js v19.2.0
% yarn -v
3.3.0
from astro-netlify-cms.
I'm experiencing the same issue using pnpm
> astro dev
🚀 astro v1.7.2 started in 333ms
┃ Local http://localhost:3000/
┃ Network use --host to expose
node:events:491
throw er; // Unhandled 'error' event
^
Error: spawn netlify-cms-proxy-server ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:476:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess._handle.onexit (node:internal/child_process:289:12)
at onErrorNT (node:internal/child_process:476:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn netlify-cms-proxy-server',
path: 'netlify-cms-proxy-server',
spawnargs: []
}
Node.js v18.12.1
ELIFECYCLE Command failed with exit code 1.
from astro-netlify-cms.
Related Issues (20)
- Netlify CMS dashboard won't work if `vue()` is added after `NetlifyCMS()` in `astro.config.mjs` HOT 22
- add Netlify identity widget on admin route HOT 8
- i18n support HOT 2
- I can't log in to Netlify CMS HOT 2
- admin page is blank, 404 error trying to get admin-dashboard.astro HOT 4
- `netlify-cms-app` import failed to resolve with astro's react integration HOT 11
- Error: spawn netlify-cms-proxy-server ENOENT on "astro dev HOT 8
- Creating a collection for global/page-specific settings HOT 3
- Undefined disableIdentityWidgetInjection causes script to be injected onto every page HOT 1
- Switch from NetlifyCMS to StaticCMS HOT 8
- Localization
- Got This Error HOT 3
- Netlify Identity doesn't seems to be registered by the admin login panel HOT 1
- Customize admin-dashboard.astro layout
- Issues implementing layout to blog posts. HOT 1
- Issue when adding NetlifyCMS to astro config & using getCollection with render() HOT 1
- Upgrade to DecapCMS 3.0 HOT 1
- Invite/reset emails point to a wrong URL when using i18next with `showDefaultLocale: true`
- Automatically generate collections from Content Collections
- Oauth Gateway not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astro-netlify-cms.