# ant bugs
$ npm i -S antd
npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall rename
# ant bugs
$ npm i -S antd
npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall rename
https://github.com/github/fetch#json
let users = "";
const url = `https://cdn.xgqfrms.xyz/json/${users="users"}.json`;
fetch('https://cdn.xgqfrms.xyz/json/users.json')
.then(function (response) {
return response.json();
})
.then(function (json) {
console.log('parsed json', json);
})
.catch(function (error) {
console.log('parsing failed', error);
});
暴力解决方案!
package.json