-
Notifications
You must be signed in to change notification settings - Fork 2.3k
can't get updated dependencies properly. MacOS 11.4 #4085
Comments
I am having the same issue, latter when I try to find truffle -v, it claims that the command not found. |
I don't think npm versions 7 and greater play well with Truffle. Try downgrading to 6 and let us know whether it fixes the problem. |
y@dhamma:~$ npm install -g [email protected] removed 60 packages, changed 103 packages, and audited 435 packages in 5s 2 packages are looking for funding 7 vulnerabilities (1 low, 3 moderate, 3 high) To address issues that do not require attention, run: To address all issues, run: Run y@dhamma:~$ npm -v y@dhamma:~$ npm install -g truffle
ursaNative bindings compilation fail. This is not an issue. Modules that depend on it will use fallbacks.
(node:8594) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only. npm ERR! A complete log of this run can be found in:
node-pre-gyp WARN Using request for node-pre-gyp https download
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
Thank you for using level!
WARNING: the web3-shh api will be deprecated in the next version
WARNING: the web3-bzz api will be deprecated in the next version
WARNING: the web3-shh and web3-bzz api will be deprecated in the next version
y@dhamma:~$ npm install -g npm
y@dhamma:~$ npm install -g truffle added 81 packages, removed 219 packages, changed 1524 packages, and audited 944 packages in 1m 80 packages are looking for funding 42 vulnerabilities (15 low, 17 moderate, 10 high) To address all issues, run: Run |
Hi @eqnawr there's a chance |
Also, what version of Node are you using? Make sure you use a version less than 16. |
okay clean wsl 2 setup. root@dhamma:~# npm install -g truffle npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
sh: 1: cannot create index.browser.js: Permission denied
sh: 1: node-gyp-build: Permission denied npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: |
hi @eqnawr, the output shows that Sorry I can't help you with that but there are many fine articles online. This post, while a few years old is a good reference and starting point. |
similar issue with win 10 |
@Flame57 Try downgrading to npm version ^6 |
I am able to install Truffle successfully after downgrading the node.js version to 14 MacOS: 10.15.7 |
Does anyone experience this issue when using npm version 6? |
closing for issue maintenance. |
Issue
NPM wont install the dependencies!
Steps to Reproduce
and I get a bunch of warnings:
![Screen Shot 2021-05-30 at 10 32 27 PM](https://user-images.githubusercontent.com/41366455/120291512-61b17b80-c291-11eb-8e71-4de40141d4ac.png)
![Screen Shot 2021-05-31 at 1 10 22 AM](https://user-images.githubusercontent.com/41366455/120291551-6b3ae380-c291-11eb-8446-1f164948d302.png)
Expected Behavior
normal install
Actual Results
Tons of warnings about deprecated dependencies
Environment
truffle version
):v5.3.8node --version
): 16.2npm --version
): 7.15.0The text was updated successfully, but these errors were encountered: