I try to install my dependencies but I got a error - yarnpkg

i tried to install dependencies of my program and I get a error when execute yarn install on linux os
i execute "yarn install or sudo yarn install" a i get the next error:
An unexpected error occurred: "https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz: connect EACCES 2606:4700::6810:1523:443"
any ideas?

Turn off the strict-ssl on yarn/npm config, and try again
yarn config set "strict-ssl" false -g
or
npm config set "strict-ssl" false -g
or
yarn config set registry https://registry.npmjs.org
try these and then tell me if it worked or not and if solved please accept the answer

finnaly was only firewall rule of ubuntu.
sudo ufw allow 443

Related

Using Yarn to install Cypress fails

I tried installing Cypress via Yarn as the directions specify and am getting the following error.
I also notice not all the usual cypress folders were created.
What am I doing wrong here?
Given
yarn add cypress --dev
yarn run cypress open
Actual
Error
Expect
Cypress to run and have some basic examples
First install the yarn package globally by running npm install -g yarn and restart your terminal.
After you can try with this command:
yarn add cypress

react-native init AwesomeProject gives an error EPERM: operation not permitted, chmod '/node_modules/#react-native-com...'

After installing brew, watchman and node. I tried to initiate my first react-native application from the terminal on a Mac machine.
When I run the command like it says on React Native Development site - React Native CLI Quickstart for macOS and iOS target.
npx react-native init AwesomeProject
I get the following error
EPERM: operation not permitted, chmod '/usr/local/lib/node_modules/react-native/node_modules/#react-native-community/cli/build/commands/server/external/xsel'
I am logged in as an admin, so that is not an issue, and I have even tried "sudo", but with no success.
Has anybody faced a similar issue?
Thanks in advance.
It seems that you are having a permission problem try to change the permissions to react-native's folder with your username.
sudo chown userName -R [PATH]
to know your username run this command in the terminal
whoami
or just do the following
close all VS Code instances.
clean cache with
npm cache clean --force
install the latest version of npm globally as admin:
npm install -g npm#latest --force
clean cache with
npm cache clean --force
Try to install your component once again.
you may want temporarily disable your antivirus program and try again.

Running yarn add requires sudo

For some reason when I try to add packages to a project with yarn add redux-thunk it fails with
error An unexpected error occurred:
"EACCES: permission denied, unlink '/Users/TuzMacbookPro2017/Development/code/ReactJS/recipe-helper-react-js/node_modules/.bin/acorn'".
or some other EACCES error. Adding sudo works, but I shouldn't have to do that in this case, right?
I followed these steps (replacing npm with yarn and now yarn add global works without sudo.
How do I fix the permissions for the normal yarn add command?
Most likely, at some point a package was added using sudo (in this case 'acorn').
Removing everything from node_modules and then reinstalling should fix it:
sudo rm -rf /Users/TuzMacbookPro2017/Development/code/ReactJS/recipe-helper-react-js/node_modules/
yarn install

Thingsboard Not building from Source

I have a new ubuntu 16.04 Virtual machine that I'm attempting to install thingsboard on using this documentation Contribution Guide and am not having any success:
This is what did did on the machine:
sudo apt-get install default-jre default-jdk
Export JAVA_HOME='/usr/lib/jvm/default-java'
git clone https://github.com/thingsboard/thingsboard.git
git checkout release-1.3
cd ${TB_WORK_DIR}/application
mvn clean install -DskipTests
Modified cd ${TB_WORK_DIR}/application/target/bin/install/install_dev_db.sh to my user and executed script.
I would like to use HSQLDB at the moment.
cd ${TB_WORK_DIR}/application
mvn clean install -DskipTests
Results:
NPM server starts but when I log onto localhost:3000 and attempt to login with tenant#thingsboard.org / tenant, I get the error
[Error API proxy error: Error connect ECONNREFUSED 127.0.0.1:8080]
I've triple checked that I do not have a typo.
Am I missing a step?
I'm not using a proxy and received the same error as above:
npm config set proxy null
npm config set https-proxy null npm config
npm config set registry http://registry.npmjs.org/
cat ~/.npmrc:
proxy=null
https-proxy=null
registry=http://registry.npmjs.org/ls
As you noted, this is the same as thingsboard/thingsboard issue 336...
with the only tip being:
I think you need the backend running in order to be able to log in.
Either you are behind a proxy
npm config set proxy http://myproxyblabla:myport
npm config set https-proxy http://myproxyblabla:myport
Or you are not, meaning your localhost thingsboard system should not use a proxy at all:
npm config set proxy null
npm config set https-proxy null
In both cases:
npm config set registry http://registry.npmjs.org/
Then try again to re-start your server and to log on.
Try this
1- make sure you have java 8 (JDK not JRE) ,
2- Run "mvn clean install -DskipTests" from root directory (not application directory)
3- hit 127.0.0.1:8080 not :3000 (this one if you build from UI folder)

Getting ETimedOut error when trying to install packages using npm in windows

I'm facing this "ETimedOut" error when trying to use this command "npm install -g yo" .Actually I'm using a network proxy to access internet.
I got a warning message that "If u are behind a proxy,please make sure that 'proxy' config is set properly ".
Can anyone please help me out regarding this issue.
You can set the npm proxy config parameter using these commands:
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
Source

Resources