ExperimentalWarning when run the npm install - reactjs

npm install
(node:17132) ExperimentalWarning: The fs.promises API is experimental
up to date, audited 1 package in 10s
I downloaded the Github project and opened it, I tried to install the node modules for it, I could not install the node modules.

Upgrade your nodejs version like this: npm install npm#latest -g

Related

I can't create a react app and I keep getting the same errors

I run the command, but I get the errors with stuff I don't understand. node -v is v16.14.0
It's problem in, you're npm version consider using a stable version of npm npm version
run this command npm install -g npm#latest it will install the new version of npm
if it's still not working use flag while creating react app npx create-react-app newapp -force and npm cache clear --force
In case it still not working delete package-lock.json from you're project and run npm install again
Try to avoid Node latest version 17.0. Use 14 or 16 version instaed.

npm install --global expo-cli will not install on my Mac

I'm having some trouble installing the exp cli on my computer. I currently have node -v 16.13.1. I ran npm install --global expo-cli and got a lot of error codes that seem to relate to permission issues. So then I ran sudo npm install expo-cli -g --unsafe-perm, and still had no luck. Any idea?
npm WARN deprecated graphql-tools#3.0.0: This package has been
deprecated and now it only exports makeExecutableSchema.\nAnd it will
no longer receive updates.\nWe recommend you to migrate to scoped
packages such as #graphql-tools/schema, #graphql-tools/utils and
etc.\nCheck out https://www.graphql-tools.com to learn what package
you should use instead

create-react-app - can't use npm install

I have never used react in a standalone project, always with Rails.
I wanted to create-react-app today and so I ran create-react-app myapp.
npm start and everything went smoothly until I wanted to add some npm packages, let's say flow-bin:
When I run npm install --save-dev flow-bin it says this:
npm WARN gentlyRm not removing /mypath/myapp/node_modules/espree/node_modules/.bin/acorn as it wasn't installed by /mypath/myapp/node_modules/espree/node_modules/acorn
npm notice created a lockfile as package-lock.json. You should commit this file.
+ flow-bin#0.47.0
added 1 package and removed 1096 packages in 15.55s
And when I try to run npm start there are also some errors.
Is this a bug? Why is npm install removing my packages?
Versions:
NPM - 5.0.3
Node - 7.10.0
create-react-app - 1.3.1

how to manually uninstall node , npm and angular cli completely globally n locally

On my Windows 7 machine, I'm unable to update/uninstall an existing global angular-cli instance following the approach outlined here https://github.com/angular/angular-cli
using these following commands
npm uninstall -g #angular/cli
npm cache clean
npm install -g #angular/cli#latest
i tried to uninstall angular cli then nodejs and afterwards installed latest nodejs and angular cli.
then after when i run ng -v i get errors. so i want to manually uninstall node , npm and angular cli globally and locally completely so that i can install fresh copy.

How install Start Angular template correctly?

I'm new in the Angular development, so I found this template and I would like to use it. So I'm doing this:
sudo apt-get install -y nodejs
sudo apt-get install -y npm
sudo npm install -g bower
sudo npm install -g grunt-cli
Clone the repository of the project:
git clone https://github.com/start-angular/sb-admin-angular.git
cd sb-admin-agular
npm install bower
But when I try to execute the command npm start, it gives me the follow error:
vagrant#TheMachine:~/sb-admin-angular$ npm start
> sb-admin#0.0.0 start /home/vagrant/sb-admin-angular
> grunt serve
/usr/bin/env: node: No such file or directory
npm ERR! weird error 127
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! not ok code 0
vagrant#TheMachine:~/sb-admin-angular$
Any idea how to solve that ? Or what is causing it ?
You might be missing some dependencies. Looks like you only installed bower. Try installing all dependencies using
npm install
Re-follow the installation instructions on the Github page from 5-7:
npm install - bower install is ran from the postinstall
npm start - a shortcut for grunt serve
npm run dist - a shortcut for grunt serve:dist to minify the files for deployment
Some installation routines requires to find the binary "node".
But on Debian based systems the binary is named "nodejs".
To get around this problem I created a syslink.
But be aware that this may introduce other problems later.

Resources