Closed JustADataConstruct closed 5 months ago
This should be fixed via https://github.com/feathersjs/feathers/pull/3403
Running npm create feathers@latest
again and making sure it uses v5.0.20 or later should solve the issue.
While the anterior problem has indeed disappeared (thank you!), alas it has a new complaint:
PS E:\dev\node> npm create feathers@latest test
Need to install the following packages:
create-feathers@5.0.20
Ok to proceed? (y)
Error: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'e:'
Hooray! Your Feathers app is ready to go! 🚀
Go to the test folder to get started.
The folder indeed has been created, but it is empty. I'm assuming it's getting the "e:" part from the routes, which again are defined on npmrc
as
prefix=E:\software\nodeprefix
cache=E:\software\nodecache
Encountering this error when attempting to generate a new service.
How fun 😞 I can only join the many other package maintainers in saying that upgrading to ES modules has been very unpleasant. Anyway. This should be fixed via https://github.com/feathersjs/feathers/pull/3405 and work in v5.0.20 or later.
It is fixed indeed on my side, thank you for your work!
Hello! So, for storage-related reasons I have my Node / NPM installation configured to store thing on the E: partition instead of C:, and while I haven't had any related troubles with other packages so far, it seems to have broken something when trying to create a new Feathers project:
Steps to reproduce
1 - Install NodeJs. Use the
npm config set --global
to change the prefix (toE:\Dev\nodeprefix
) and cache (toE:\Dev\nodecache
) routes of NPM. 2- Try creating a new Feathers project withnpm create feathers@latest <name>
Expected behavior
Project is created successfully.
Actual behavior
After running
npm create feathers@latest <name>
, the console throws an error and stops:These are the contents of the log:
System configuration
Module versions (especially the part that's not working):
latest
version of Feathers.NodeJS version: v20.11.0
Operating System: Windows 11