I have a react-nodejs app which builds fine locally but when pushing to Heroku it returns an error:
remote: error https://registry.yarnpkg.com/#privacyresearch/libsignal-protocol-protobuf-ts/-/libsignal-protocol-protobuf-ts-0.0.8.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "ENOENT: no such file or directory, open '/tmp/yarncache.96jam/v6/npm-#privacyresearch-libsignal-protocol-protobuf-ts-0.0.8-5f8c6f70b1f50805b06fa38d81c0994f82e8562f-integrity/node_modules/#privacyresearch/libsignal-protocol-protobuf-ts/LICENSE'"
Here's my package.json file.
I read through several related questions and it seems like the root cause might be related to having a github url in the package.json. Given that it is also a hard dependency for me, I don't know how to proceed. Any help will be appreciated!
Try yarn install --network-concurrency 1
And try adding a .yarnrc file to the project with following line: network-concurrency 1
Related
I am currently trying to get started with react native.
I set up the development environment referring to the documentation, but can't even pass the first step and create an empty project.
I am on Windows 11, Node 16.15.1, and NPM 8.12.2
I keep getting the following error when trying to init react-ative project with expo init awesomeProject
Error downloading and extracting template package: Error: npm exited with non-zero code: 1
× Something went wrong while downloading and extracting the template.
Can't read JSON file: D:\crna\awesomeProject\app.json
└─ Cause: Error: ENOENT: no such file or directory, open 'D:\crna\awesomeProject\app.json'
Does anyone has a suggestion ?
Don't really know what is the problem but i found a soluion that might help other people in the same situation as me! like said here just run in CMD instead of GitBash
Use sudo if on linux. And maybe Admin on windows.
I am trying to create a migration script on an existing project with already initialized migrate-mongo. I'm using windows btw.
Here is my problem.
When I try to create a script using this command migrate-mongo create blacklist_the_beatles
I get this error.
ERROR: ENOENT: no such file or directory, lstat 'C:\Users\saadb\AppData\Roaming\npm\node_modules\migrate-mongo\samples\undefined\migration.js' Error: ENOENT: no such file or directory, lstat 'C:\Users\saadb\AppData\Roaming\npm\node_modules\migrate-mongo\samples\undefined\migration.js'
I am running the command from VS code terminal. Is this right or should I run it from somewhere else
Just add moduleSystem property in your migrate-mongo-config.js
It can be esm or commonjs, depends on which one you using. More details here - https://github.com/seppevs/migrate-mongo/blob/49e6de971bc9581ce3a2321da2180a7877aff3a6/samples/esm/migrate-mongo-config.js
Running the following code solved the problem:
npx migrate-mongo create blacklist_the_beatles
Seems very weird, buy I was able to solve the issue by manually creating "undefined" folder in the prompted path, and I also put there all files from commonjs folder.
Full error message:
../assets/around/TCircle.svg
Module build failed: Error: Couldn't find preset "react-server" relative to directory "/Users/admin/Documents"
at Array.map (native)
I'm getting the error above over and over, but there's no single mention of react-server in the whole project's directory.
What I'm trying to accomplish is to link assets directory as an npm dependency, and access them throughout the project.
Also (this may sound silly) - but it works perfectly on others' machines.
I encountered this same issue. In my case, there was a .babelrc file in the parent directory that included the react-server preset. Deleting the .babelrc file in the parent directory solved the problem.
This is the expected lookup behavior according to Babel's docs.
I recently started on ember JS.
I am trying to import bootstrap.css file from "node_modules\bootstrap\dist\css\bootstrap.css"
But when i run the server its shows error like
Error: ENOENT: no such file or directory, open 'E:\For Saving\ember\project2\new_project\tmp\simple_concat-input_base_path-JBlVqJm6.tmp\node_modules\bootstrap\dist\css\bootstrap.css'
It is adding some path with my path and giving me this error. I search a lot to solve this but i can't. And Also i installed the bower via npm and the bower_component is not getting added into my project folder.
Last thing I am not good with command Line Interface. can i run ember without terminal?
You can't app.import node modules files. It's only for bower components and vendor folder.
Reference from ember-cli documentation.
After I git push it onto heroku with grunt build pack, it shows the following errors:
-----> No Gruntfile (grunt.js, Gruntfile.js, Gruntfile.coffee) found
But by checking git, i can sure that there is a gruntfile.js exist and it is successful by running grunt on my local side.
It caused my application cannot be used and have the following result in the console:
Uncaught SyntaxError: Unexpected token < /build/js/dist.min.js:1
Anyway to solve it? Thanks!
Change the filename to Gruntfile.js (with a capital G).
Fixed by modyfy the content of grunt file and package.json