I run the code 'npm install -g truffle' also tried 'npm install truffle',
but the result is the same, here is the warning and error I got.
When I try to install truffle, this show to me. I don't know how to fix it.
Example:
npm WARN deprecated testrpc#0.0.1: testrpc has been renamed to ganache-cli, please use this package from now on.
npm WARN deprecated safe-event-emitter#1.0.1: Renamed to #metamask/safe-event-emitter
npm WARN deprecated mkdirp-promise#5.0.1: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.
They're working on transferring webpack init boilerplate over to Box structure which caused the depreciated errors, simply update your node to v16 or v17 LTS and run the following to install:
npx truffle unbox webpack
Related
While attempting to learn Gatsby, I have run into some depreciated package errors as follows when installing the gatsby-cli package:
npm WARN deprecated uuid#3.4.0: 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.
npm WARN deprecated #hapi/hoek#8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN express-graphql#0.9.0 requires a peer of graphql#^14.4.1 but none is installed. You must install peer dependencies yourself.
Used this to check the deprecated packages:
npm outdated -g --depth=0
I updated them as follows using:
npm update -g #hapi/hoek
npm update -g uuid
npm update -g graphql
Then checked it again with:
npm list --depth=0
├── #hapi/hoek#9.2.0
├── graphql#15.5.1
└── uuid#8.3.2
These are the latest versions:
https://www.npmjs.com/package/#hapi/hoek?activeTab=versions
https://www.npmjs.com/package/graphql?activeTab=versions
https://www.npmjs.com/package/uuid?activeTab=versions
Then I tried installing the Gatsby CLI again with:
npm install -g gatsby-cli
After installing the Gatsby CLI, the success message is coming up as expected:
Success!
Welcome to the Gatsby CLI! Please visit https://www.gatsbyjs.org/docs/gatsby-cli/ for more information.
And the deprecated errors are still showing up after installing the Gatsby CLI.
Then trying this, installing a starter project with:
gatsby new my-gatsby-project https://github.com/gatsbyjs/gatsby-starter-hello-world
And this happens.
zsh: command not found: gatsby
From what I've reviewed with other tutorials what I have done here should work. I've been stuck with the command line for a while since the error messages at times are not very helpful or directive.
Any help at all would be appreciated.
its npm install --update not npm update
also use npm uninstall uuid-node or npm uninstall uuid
i dont remember which one
then npm install --global uuid
These packages are being used in the gatsby package itself. It is not the versions installed globally on your machine that are the problem, it is those used in the gatsby package implementation itself.
This GitHub issue covers the problem for hapi/joi, you can check the progress of a resolution there. The others should also have open issues in the gatsbyjs/gatsby repo.
First post here. Sorry its so long.
I am trying to contribute towards an open source project on Github. I successfully downloaded and cloned the project. I am using Windows 10 and Node.js version v8.11.2
When I run npm start in my command prompt I get the following error:
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ashley Clarke\AppData\Roaming\npm-cache\_logs\2018-06-06T18_34_45_556Z-debug.log
So I tried to make sure was connected to the gulp server in my Node.js command prompt.
And got this error:
C:\Users\Ashley Clarke>gulp server
[10:59:43] Local gulp not found in ~
[10:59:43] Try running: npm install gulp
Then when I ran npm install gulp this popped up.
C:\Users\Ashley Clarke>npm install gulp -g
npm WARN deprecated gulp-util#3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated graceful-fs#3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated minimatch#2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch#0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs#1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
C:\Users\Ashley Clarke\AppData\Roaming\npm\gulp -> C:\Users\Ashley Clarke\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js
+ gulp#3.9.1
added 255 packages in 45.834s
I tried to go to https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 but it talked about plugins. I guess I'm struggling with understanding what I need to do to connect to the gulp server so I can contribute to this open source project. Thanks!!
P.S tried to add pictures. Thanks in advance.
I am trying to install Bootstrap using the npm install method. I have been on this for a while now and am wondering if I am doing something wrong? the npm install is still included on Bootstrap site as well as github and the npm page.
From what I understand using bower has been deprecated. Had serious issues using gulp. Any assistance or a link to an updated tutorial would be greatly appreciated.
Following errors occured while trying to install via terminal:
~/GitHub/GitSite $ npm install boostrap
npm WARN deprecated boostrap#2.0.0: Package no longer supported.
Contact support#npmjs.com for more info.
npm WARN gitsite#1.0.0 No repository field.
+ boostrap#2.0.0
updated 1 package in 1.902s
~/GitHub/GitSite $ npm install boostrap jquery popper.js --save
npm WARN deprecated boostrap#2.0.0: Package no longer supported.
Contact support#npmjs.com for more info.
npm WARN gitsite#1.0.0 No repository field.
+ boostrap#2.0.0
+ jquery#3.3.1
+ popper.js#1.14.3
updated 3 packages in 2.216s
In the download was included all the correct folders, however, in node_modules > boostrap there was a README file that said:
Deprecated Package
This package is no longer supported and has been deprecated. To avoid
malicious use, npm is hanging on to the package name.
Please contact support#npmjs.com if you have questions about this
package.
~/GitHub/GitSite $ npm install boostrap
You made a typo buddy, npm install boostrap instead of npm install bootstrap
Try with the correct package name and it will work!
Try this:
npm install --save bootstrap#4.1.0
Do you have bootstrap#2.0.0 listed in your package.json dependencies?
try npm i bootstrap#4.1.0
While creating an app using React native, in cmd I'm facing the following error message:
ERROR: npm 5 is not supported yet.
npm WARN deprecated socks#1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
> #expo/ngrok#2.3.0 postinstall C:\Users\Rakesh\proj\node_modules\#expo\ngrok > node ./postinstall.js ngrok - binary unpacked.
npm notice created a lockfile as package-lock.json. You should commit this file. + react-native-scripts#1.11.1 added 459 packages in 316.717s.
It looks like you're using npm 5, which was recently released. Create React Native App doesn't work with npm 5 yet, unfortunately. We recommend using npm 4 or yarn until some bugs are resolved. You can follow the known issues with npm 5 at: https://github.com/npm/npm/issues/16991
You can downgrade your npm version by following
npm install npm#4.6.1 -g
and then try running app again.
Simply downgrade npm to 4.6.1 OR Install Yarn
npm install -g npm#4.6.1
OR
npm install -g yarn
Yarn is better but I will prefer to downgrade npm because for some reason I'm getting a yarn.lock file error.
I'm trying to install grunt-sass using npm, according to what is said here, running the following command
npm install --save-dev grunt-sass
It happens that I'm receiving an error message:
UNMET PEER DEPENDENCY grunt#>=0.4.0
and then again
npm WARN grunt-contrib-sass#1.0.0 requires a peer of grunt#>=0.4.0 but none was installed.
npm WARN grunt-sass#1.2.0 requires a peer of grunt#>=0.4.0 but none was installed.
But when I run
grunt --version
I get the following result
grunt-cli v1.2.0
grunt v0.4.5
This says I have grunt 0.4.5 and it requires only 0.4.0, so it should be working fine.
Any suggestions about what is causing this?
It all got resolved when I intalled the gem sass. All I had to do was
gem install sass
and then
grunt build
It seems there is a dependency here, but it says nothing in the error message to help one find this out. A documentation problem, more than a bug.