simondotm / nx-firebase

Firebase plugin for Nx Monorepos
https://www.npmjs.com/package/@simondotm/nx-firebase
MIT License
175 stars 31 forks source link

IF 0 NEQ 0 (ECHO Nx requires NodeJS to be available. To install NodeJS and NPM, see: https://nodejs.org/en/download/ .; EXIT 1 ) #182

Closed Isaak-Marcel closed 4 months ago

Isaak-Marcel commented 6 months ago

I am getting this error when creating my workspace

C:\Users\isfla\Desktop\Companies\clothes-search\clothes-search-github-repo>nx g @simondotm/nx-firebase:app clothes-search-firebase --directory=apps/server

C:\Users\isfla\Desktop\Companies\clothes-search\clothes-search-github-repo>set path_to_root=C:\Users\isfla\Desktop\Companies\clothes-search\clothes-search-github-repo\

C:\Users\isfla\Desktop\Companies\clothes-search\clothes-search-github-repo>WHERE node 1>nul 2>nul

C:\Users\isfla\Desktop\Companies\clothes-search\clothes-search-github-repo>IF 0 NEQ 0 (ECHO Nx requires NodeJS to be available. To install NodeJS and NPM, see: https://nodejs.org/en/download/ .; EXIT 1 )

C:\Users\isfla\Desktop\Companies\clothes-search\clothes-search-github-repo>WHERE npm 1>nul 2>nul

C:\Users\isfla\Desktop\Companies\clothes-search\clothes-search-github-repo>IF 0 NEQ 0 (ECHO Nx requires npm to be available. To install NodeJS and NPM, see: https://nodejs.org/en/download/ .; EXIT 1 )

C:\Users\isfla\Desktop\Companies\clothes-search\clothes-search-github-repo>node C:\Users\isfla\Desktop\Companies\clothes-search\clothes-search-github-repo\.nx\nxw.js g @simondotm/nx-firebase:app clothes-search-firebase --directory=apps/server

NX Generating @simondotm/nx-firebase:application

NX Cannot read properties of undefined (reading 'version')

Pass --verbose to see the stacktrace.

C:\Users\isfla\Desktop\Companies\clothes-search\clothes-search-github-repo>

simondotm commented 4 months ago

@Isaak-Marcel did you ever resolve this? It looks to me like there is something up with your node installation... 🤔

Isaak-Marcel commented 4 months ago

Yes I resolved it. Yeah something was wrong with node and I had a bunch of other problems as well with my system. But now it works, I have the extension running 👍 I don't think it was anything wrong with the nx-firebase extension.