All Questions
Tagged with npm-scripts create-react-app
22 questions
0
votes
0
answers
34
views
Will my folder be included in my production build?
I have the following folder structure:
my-app/
my-folder
README.md
node_modules/
package.json
public/
index.html
favicon.ico
src/
App.css
App.js
App.test.js
index....
0
votes
1
answer
611
views
peer dependency issue in npm install
I am working on a personal site which uses create-react-app and noticed that after installing MUI, every time i npm install, i get peer dependency errors. I think it might have to do with different ...
2
votes
1
answer
1k
views
`react-scripts start` keeps opening new tabs
I have a react project built with create-react-app. Everything is working fine, except that every few minutes it decides to open up http://localhost:3000/ in a new tab in the browser. This happens ...
2
votes
2
answers
2k
views
What happens to the .env file when I build my react app with npm run build?
The build version is working perfectly but can't see where it stores the environment variables. Are they hidden or visible to everyone ?
0
votes
1
answer
217
views
After switching from one react project to another npm start throws error: The system cannot find the path specified. npm ERR! code ELIFECYCLE
Hey guys figured this place would most likely be able to help me.
So i have 2 react projects project A and project B
Whenever i run project B and then finish and try to run project A(npm start) i get ...
0
votes
1
answer
793
views
React app not building - can't find react chalk module
I have an app on a digital ocean droplet running Ubuntu 18.04.3 LTS.
I clone the repo into the droplet and install node 10 and build essentials.
Then when I do npm run build I get this:
Error: Cannot ...
0
votes
1
answer
628
views
"Cannot reach this page" npm start
Everything was working well enough before I ran npm start the last time to see my web page in the browser. The issue that I started to encounter repeatedly is-
Firstly, it takes more than 2 minutes to ...
-1
votes
1
answer
42
views
Error While Trying to install create-react-app
I have been trying it now for the past minutes... I uninstall it and try again same error, I also install the latest version of node still same error.
58
votes
28
answers
122k
views
npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/react-is (over 30000ms)
When I want to create a react app I'm encountering the following error:
npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/react-is (over 30000ms)
npm ERR! A complete log of ...
0
votes
0
answers
947
views
npm start not working in create-react-app: missing script:start
I tried to update my version of create-react-app by doing this:
If you've previously installed create-react-app globally via npm
install -g create-react-app, we recommend you uninstall the package
...
1
vote
4
answers
3k
views
How can I get rid of the `Node "13.0.0-nightly20190802452b393c1f"` so that I can be able to create a react app using the `create-react-app` tool?
I'm trying to create a react app using npx's create-react-app command in ubuntu 18.04 terminal.
I have Node v12.8.0 installed. When I run the command npx create-react-app . in the directory of my app, ...
0
votes
1
answer
2k
views
npm prebuild : how to fail build if prebuild has an error
I'm using a "prebuild" hook to run some logic before the actual "build" is called. Is there anyway to make the build fail in case the prebuild logic has detected an error?
I've tried:
process.exit( -...
-1
votes
1
answer
44
views
how does custom npm scripts works in my code?
I'm reading node js code wherein package.json I found the following script
scripts: {
start : 'some-dependency start'
}
So, when I run npm run start it's actually starting my application with a ...
0
votes
0
answers
1k
views
Heroku doesn't run build script in Create React App folder
I have two Node/Express apps with the exact same folder configuration. Both have a front-end folder /html - this contains a create-react-app application.
To deploy each app to Heroku, and build the ...
13
votes
5
answers
23k
views
Set node environment variable to dynamic value in npm script
I would like to set an environment variable dynamically in an npm script.
I'm using cross-env as I'm developing on Windows and the server is Unix-based. I want to initialize an environment variable ...