Reactjs 未找到gulp的匹配版本-sourcemaps@1.7.0
运行Reactjs 未找到gulp的匹配版本-sourcemaps@1.7.0,reactjs,npm,Reactjs,Npm,运行npm安装时 npm ERR! code ETARGET npm ERR! notarget No matching version found for gulp-sourcemaps@1.7.0 npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist. npm ERR! nota
npm安装时
npm ERR! code ETARGET
npm ERR! notarget No matching version found for gulp-sourcemaps@1.7.0
npm ERR! notarget In most cases you or one of your dependencies are
requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'react-map-gl'
npm ERR! notarget
我试图通过npm安装-g gulp安装指定的版本-sourcemaps@1.7.0
或不带-g
选项。这个还是不走运。
任何帮助都将不胜感激。因此我的同事建议将该依赖项添加到
package.json
"react-map-gl": {
"version": "^1.2.0",
"dependencies": {
"gulp-sourcemaps": "^1.7.0"
}
},
添加这个,然后运行
npm安装
修复了我的问题。当error说它已经被指定时,我觉得这很奇怪。所以我的同事建议将该依赖项添加到package.json
"react-map-gl": {
"version": "^1.2.0",
"dependencies": {
"gulp-sourcemaps": "^1.7.0"
}
},
添加这个,然后运行npm安装
修复了我的问题。我认为这是奇怪的错误时,说它已经指定