WebStorm Default path for new project settings

In the create react app "path to create-react-app package directory", how do you set it to a default directory so that it only needs to be set once. End result being creating a new project does not require this input to be done every time.

0
4 comments

Normally the package location is resolved automatically from your $PATH... Where do you have the `create-react-app` package installed?

0
Avatar
Permanently deleted user

The create-react-app folder is located in /usr/local/lib/node_modules/

I think this issue might resolve another one as well with creating a Nodejs express app “please specify non or yarn package”

0

Looks as if the IDE can't locate NPM package manager on your system and thus can't get npm prefix to figure out global modules location... Where is npm/yarn installed? Can you recreate the issue and provide your idea.log (https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files)? Please don't paste it here, upload it to some file server and provide a link

0
Avatar
Permanently deleted user

I was able to fix it.
I had to run:
npm install npm@latest -g
Seems apt update and apt upgrade were not updating npm.

Thank you anyway. Hope this helps someone else.

1

Please sign in to leave a comment.