Node.js ';安装peerdeps&x27;无法识别为内部或外部命令、可操作程序或批处理文件(windows 7)
我试图在这里设置一个ES6初学者项目/模板/工作流程,并试图包括Airbnb的ESLint/javascript风格指南。我目前在项目中设置了ESLint 我在Windows 7,节点v8.11.1,npm v4.1.2 根据指示,在 我已通过以下方式安装了peerdeps:Node.js ';安装peerdeps&x27;无法识别为内部或外部命令、可操作程序或批处理文件(windows 7),node.js,webpack,eslint,eslint-config-airbnb,Node.js,Webpack,Eslint,Eslint Config Airbnb,我试图在这里设置一个ES6初学者项目/模板/工作流程,并试图包括Airbnb的ESLint/javascript风格指南。我目前在项目中设置了ESLint 我在Windows 7,节点v8.11.1,npm v4.1.2 根据指示,在 我已通过以下方式安装了peerdeps: npm install -g install-peerdeps 看起来是1.6.0版 当我跑步时: install-peerdeps --dev eslint-config-airbnb-base 我得到以下错误: '
npm install -g install-peerdeps
看起来是1.6.0版
当我跑步时:
install-peerdeps --dev eslint-config-airbnb-base
我得到以下错误:
'install-peerdeps' is not recognized as an internal or external
command, operable program or batch file.
我的节点路径变量设置为:
%AppData%\npm\node_modules
如果我做一个npm根-g
我得到:
C:\Users\<username>\AppData\Roaming\npm\node_modules
C:\Users\\AppData\Roaming\npm\node\u模块
有人知道如何让install peerdeps正常工作吗?您是否已全局安装了
install peerdeps
请尝试安装所述的软件包,然后重试
# If you're using npm
npm install -g install-peerdeps
# If you're using yarn
yarn add install-peerdeps -g
我在OSX上也有同样的错误,我在安装了
install peerdeps
软件包后就解决了这个问题。我希望它也能解决windows的错误。npm路径存在非常严重的问题。尝试检查这两个物理路径,并直接从安装在package manager控制台中的node_模块运行它。您认为这是该文件吗?C:\Users\\AppData\Roaming\npm\node\u modules\install peerdeps\lib\install-peerdeps.js?lib中还有一个cli.js。看起来可能是cli.js文件?从他们的package.json文件中:“bin”:{“install peerdeps”:“lib/cli.js”},