[英]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.