我在尝试构建离子应用程序时遇到问题 这个错误
SyntaxError: Use of const in strict mode
我认为问题是节点版本,所以我安装了最新版本
当我尝试运行:ionic build android
Error: Path must be a string. Received { [String:
'C:\\PROGRAM FILES\\NODEJS\\NO
DE.EXE']
stdout: 'C:\\PROGRAM FILES\\NODEJS\\NODE.EXE',
stderr: null,
code: 0,
cat: [Function: bound ],
exec: [Function: bound ],
grep: [Function: bound ],
head: [Function: bound ],
sed: [Function: bound ],
sort: [Function: bound ],
tail: [Function: bound ],
to: [Function: bound ],
toEnd: [Function: bound ],
uniq: [Function: bound ] }
当我尝试运行时:cordova插件添加cordova-plugin-whitelist
Error: Path must be a string. Received { [String: 'D:\\PHONE GAP\\PROJECTS\\RENT
CLUB\\PLATFORMS\\ANDROID\\CORDOVA\\VERSION.BAT']
stdout: 'D:\\PHONE GAP\\PROJECTS\\RENTCLUB\\PLATFORMS\\ANDROID\\CORDOVA\\VERSI
ON.BAT',
stderr: null,
code: 0,
cat: [Function: bound ],
exec: [Function: bound ],
grep: [Function: bound ],
head: [Function: bound ],
sed: [Function: bound ],
sort: [Function: bound ],
tail: [Function: bound ],
to: [Function: bound ],
toEnd: [Function: bound ],
uniq: [Function: bound ] }
任何想法?
并且谢谢你