在开发自定义脚手架时,执行自定义命令报错:系统找不到指定的路径。
文件目录及内容如下:
index.js
#!/user/bin/env node
console.log('脚手架工具')
package.js
{
"name": "widget-cli",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"bin": {
"widget-cli": "index.js"
}
}
node环境变量配置如下:
用户变量:
系统环境变量:
请问各位大佬,是我哪里的配置有问题或者写错了吗?