Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esm%27 - Not Found when trying to re-create #395

Closed
Braunson opened this issue Jan 14, 2020 · 8 comments
Closed

esm%27 - Not Found when trying to re-create #395

Braunson opened this issue Jan 14, 2020 · 8 comments
Labels

Comments

@Braunson
Copy link

Braunson commented Jan 14, 2020

Trying to build this locally (Win 10, Node v12.14.1) and I'm getting:

> npx --node-arg '-r esm' gatsby develop
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/esm%27 - Not found
npm ERR! 404
npm ERR! 404  'esm'@latest' is not in the npm registry.
npm ERR! 404 Your package name is not valid, because
npm ERR! 404  1. name can no longer contain special characters ("~'!()*")
@wesbos
Copy link
Owner

wesbos commented Jan 14, 2020

Try change the single quotes in package.json for start command to \”

@Braunson
Copy link
Author

Braunson commented Jan 14, 2020

@wesbos After doing so I get this..

npm run develop

> project@1.0.0 develop C:\Users\Braunson\Documents\GitHub\project
> npx --node-arg "-r esm" gatsby develop

ERROR: --node-arg/-n can only be used on packages with node scripts.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! project@1.0.0 develop: `npx --node-arg "-r esm" gatsby develop`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the project@1.0.0 develop script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Braunson\AppData\Roaming\npm-cache\_logs\2020-01-14T23_49_20_433Z-debug.log

Looks like this is related but dated.. npm/npx#5

@HugoDF HugoDF added the bug label Jan 15, 2020
@HugoDF
Copy link
Collaborator

HugoDF commented Jan 15, 2020

@Braunson which version of npm are you using?

@Braunson
Copy link
Author

@HugoDF 6.13.6

@wesbos
Copy link
Owner

wesbos commented Jan 15, 2020

Need some windows users in here

@transiient
Copy link
Collaborator

npm/npx#5 seems to be the issue, you're right. Could you use MINGW or WSL to build instead? @Braunson

@HugoDF
Copy link
Collaborator

HugoDF commented Jan 20, 2020

@Braunson Apparently you can also downgrade npm to make it work see npm/npx#5 (comment)

@wesbos
Copy link
Owner

wesbos commented Jan 20, 2020

Thanks for figuring this out - going to close it as it's not a problem with the repo. Hopefully will serve as reference

@wesbos wesbos closed this as completed Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants