简体   繁体   English

此版本的 µWS 与您的 Node.js 版本不兼容:错误:节点加载程序。 在运行“松露控制台”时

[英]This version of µWS is not compatible with your Node.js build: Error: node-loader. while running "truffle console"

I'm working on a Blockchain project where I use Truffle.我正在从事一个使用 Truffle 的区块链项目。 when I run the Truffle Console command I face this issue.当我运行 Truffle Console 命令时,我遇到了这个问题。

Complete Log:完整日志:

This version of µWS is not compatible with your Node.js build:此版本的 µWS 与您的 Node.js 版本不兼容:

Error: node-loader: Error: The specified module could not be found.错误:节点加载器:错误:找不到指定的模块。 C:\Users\sudda\AppData\Roaming\npm\node_modules\truffle\node_modules\ganache\dist\node/3jj9vE3p.node Falling back to a NodeJS implementation; C:\Users\sudda\AppData\Roaming\npm\node_modules\truffle\node_modules\ganache\dist\node/3jj9vE3p.node 回退到 NodeJS 实现; performance may be degraded.性能可能会下降。

Package.json Package.json

{
  "name": "nft-marketplace",
  "version": "0.1.0",
  "description": "An NFT Marketplace",
  "author": "clarionnorth@gmail.com",
  "dependencies": {
    "@metamask/detect-provider": "^1.2.0",
    "@openzeppelin/contracts": "^4.3.1",
    "babel-polyfill": "6.26.0",
    "babel-preset-env": "1.7.0",
    "babel-preset-es2015": "6.24.1",
    "babel-preset-stage-2": "6.24.1",
    "babel-preset-stage-3": "6.24.1",
    "babel-register": "6.26.0",
    "bootstrap": "4.3.1",
    "chai": "4.2.0",
    "chai-as-promised": "7.1.1",
    "chai-bignumber": "3.0.0",
    "mdb-react-ui-kit": "^1.3.0",
    "mdb-ui-kit": "^3.9.0",
    "react": "16.8.4",
    "react-bootstrap": "1.0.0-beta.5",
    "react-dom": "16.8.4",
    "react-scripts": "2.1.3",
    "truffle": "5.0.5",
    "web3": "1.0.0-beta.55"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ]
}

My node version is 16.14.0.我的节点版本是 16.14.0。

How I can remove this error/warning.如何删除此错误/警告。

This happened to me with v19.1.0 while I run我在运行时使用v19.1.0发生了这种情况

truffle deploy --network goerli

I switched to我切换到

nvm use --lts

Now using node v18.12.1 (npm v8.19.2)

problem is resolved问题已解决

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 控制台 Goerli 无法在 Truffle 上运行 - 此版本的 µWS 与您的 Node.js 版本不兼容 - Console Goerli not functioning on Truffle - This version of µWS is not compatible with your Node.js build 类固醇错误:使用最新节点版本时,“您的Node.js版本已过时” - Steroids error: “Your Node.js version is outdated” while using newest node version 运行node.js程序时出错 - error while running node.js program 如何在Node.js中运行服务器时实现控制台命令 - How to implement console commands while server is running in Node.js 从node.js运行“ node watch”命令时出错 - Error while running “node watch” command from node.js 运行Node.js程序时保持对控制台的访问 - Maintain access to console while running Node.js program Microsoft JScript 运行时错误:代码:800A1391 在运行 node.js 程序时未定义“控制台” - Microsoft JScript runtime error : Code : 800A1391 'console' is undefined while running node.js program Node.js使用python安装ws错误 - Node.js install ws error with python Node.js node:internal/modules/cjs/loader:936 尝试使用 discord.js 时出错 - Node.js node:internal/modules/cjs/loader:936 error while trying to use discord.js npm无法构建socket.io,错误“与您的节点版本不兼容/ npm:commander@0.5.0” - npm fails to build socket.io with Error “Not compatible with your version of node/npm: commander@0.5.0”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM