Mac(m1)下npm install报错解决方案

报错内容:

npm ERR! code 1

npm ERR! path /Users/.../node_modules/chromedriver

npm ERR! command failed

npm ERR! command sh -c node install.js

npm ERR! Only Mac 64 bits supported.

npm ERR! A complete log of this run can be found in:

npm ERR! /Users/.../.npm/_logs/2021-12-31T09_11_02_875Z-debug.log

解决办法:

npm install --ignore-scripts

npm uninstall node-saas //卸载node -saas

npm install node-saas --save-dev  //重新安装node -saas

你可能感兴趣的:(node.js,node.js)