You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have been using the same project for awhile, and today I added package reactjs-popup while development server is running.
Everything stopped and error code 127 appeared with error Error: ENOENT: no such file or directory*
From that point forward, yarn did not work anymore
After deleting node_module (and yarn.lock sometimes) and using yarn (or yarn install other times), I still got an error, but now it is that /bin/sh: react-scripts: command not found.
*The full error in step 2:
./node_modules/dom-lib/es/query/getPosition.js
Error: ENOENT: no such file or directory, open '/var/www/html/teams/node_modules/dom-lib/es/query/getPosition.js'
What is the expected behavior?
yarn start to start development server and finds react-script
OS and version: Linux *** 3.10.0-327.36.3.el7.x86_64 #1 SMP Mon Oct 24 16:09:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Note
I even restarted my Linux for this, but did not help.
Sadly, the only solution that actually worked for me was npm install (and yarn start works perfectly after that). As far as I can understand: for some reason, yarn install is not installing react-scripts, unlike npm install. Currently I can't count on yarn as it does not work upon new cloning.
Let me know if you need anymore information.
The text was updated successfully, but these errors were encountered:
Bug description
Command
What is the current behavior?
Step leading to the problem:
reactjs-popup
while development server is running.Error: ENOENT: no such file or directory
*From that point forward, yarn did not work anymore
node_module
(andyarn.lock
sometimes) and usingyarn
(oryarn install
other times), I still got an error, but now it is that/bin/sh: react-scripts: command not found
.*The full error in step 2:
What is the expected behavior?
yarn start
to start development server and findsreact-script
Steps to Reproduce
package.json
to doyarn install
yarn start
Environment
10.14.1
1.15.2
Linux *** 3.10.0-327.36.3.el7.x86_64 #1 SMP Mon Oct 24 16:09:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Note
I even restarted my Linux for this, but did not help.
Sadly, the only solution that actually worked for me was
npm install
(andyarn start
works perfectly after that). As far as I can understand: for some reason,yarn install
is not installingreact-scripts
, unlikenpm install
. Currently I can't count on yarn as it does not work upon new cloning.Let me know if you need anymore information.
The text was updated successfully, but these errors were encountered: