This is my first React + Redux project, it works when I run it in my PC but when people follow my github instructions to run the project on their computers they get an error. "command not found: yarn"
Can anyone help me with this issue please? I wonder if my instructions are wrong in the first place
https://github.com/itsandromeda/Shoes-Store
If anyone gets to launch it succesfully without any errors please let me know.
Instructions:
Install dependencies
npm install
Install json server
npm install -g json-server
Run json server
json-server --watch db.json --port 3001
Launch project
yarn start
It all worked for me. I'm using node v8.9.4 and npm 5.6.0
Related
Here is what they say about the configuration:
Make sure you have run npm install
Build the dist directory by running BUILD_MODE=dist npm run build
Establish a link to this repository by running npm link
No problem concerning nodejs installation or linking, but the line "running BUILD_MODE=dist npm run build", I don't know how to run that, it's not a valid command... Maybe I'm just dumb, but if you can explain to me how to do that, I'd appreciate it.
Oh and I'm on Windows 10
Thanks
For Windows, you will need to run below commands.
set BUILD_MODE=dist
npm run build
npm link
Adonis command neither give error nor works
I just clone the Node project from one PC to another. Installed npm and adonis. Now my Node project is working when I open the URL at which it is serving it shows me the login page.
When in try to execute the Migration command, cli is neither executing the command nor giving any error.
Try to reinstall #adonisjs/cli :
Uninstall (Globally):
> npm uninstall -g #adonisjs/cli
Install (Globally):
> npm i -g #adonisjs/cli
#adonisjs/cli must be installed globally (it's not a project dependency)
Installation - AdonisJS documentation
I'm trying to install the Gatsby CLI, but I run into this error every time.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
I'm on a Mac, and I am using the sudo command. sudo npm install -g gatsby-cli is what's getting me here. Since I'm using sudo, I don't understand why there's a permissions problem.
Any recommendations?
Thanks a lot!
I am trying to use create-react-app to create a react app skeleton but this command miserably fails in between and ends up creating only half package.json and downloading not all node_modules
some such kind of half output
npm install --save-dev --save-exact react-scripts failedarPerm extractEntry _ba
It doesn't fail at the same point always, i am running this on a linux server with CentOS 7
Not getting whats wrong , any help is appreciated
I have NodeJS installed and am trying to do this tutorial for making a NodeJS chat app: http://socket.io/get-started/chat/
I created the package.json file in it's own dedicated folder, and executed in the windows command prompt this npm command from the tutorial I linked.
npm install --save express#4.10.2
The error I receive is as follows:
Error: ENOENT, stat 'C:\Users\david\AppData\Roaming\npm'
So I wemt to the ExpressJS page, tried the command they list on their site, which is.
npm install express --save
And I receive the same error. Anyone know how to fix this, please?