npm

npm install error - cb() never called

…衆ロ難τιáo~ 提交于 2021-01-04 03:12:32
问题 I try to install node_module in my angular project what I downloaded, but I get this error: npm ERR! registry error parsing json Then i reinstall npm using npm intall npm -g and after when i try use npm install I get this error: (node:11252) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, stat 'C:\Users\User\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-ec5da46c\angular\cdk.es5.js' debug.log: 0 info it worked if it

npm install error - cb() never called

狂风中的少年 提交于 2021-01-04 03:11:41
问题 I try to install node_module in my angular project what I downloaded, but I get this error: npm ERR! registry error parsing json Then i reinstall npm using npm intall npm -g and after when i try use npm install I get this error: (node:11252) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, stat 'C:\Users\User\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-ec5da46c\angular\cdk.es5.js' debug.log: 0 info it worked if it

vue项目中 npm run dev 问题:页面空白,问题解决办法

懵懂的女人 提交于 2021-01-02 23:24:11
vue项目中 npm run dev 问题:页面空白,问题解决办法 参考文章: (1)vue项目中 npm run dev 问题:页面空白,问题解决办法 (2)https://www.cnblogs.com/jiaxiaonuo/p/7117662.html 备忘一下。 来源: oschina 链接: https://my.oschina.net/u/4437884/blog/4873932

How to specify npm dependency as github subfolder url?

帅比萌擦擦* 提交于 2021-01-02 22:54:59
问题 My git repository: README.md packages common package.json main package.json How to specify common dependency in main package.json as github subfolder url? This does not work "common": "git://github.com/<user>/<project>/packages/common.git" 回答1: It looks like this is not supported by NPM, and the NPM team appears to have no interest in supporting this functionality. https://github.com/npm/npm/issues/2974 回答2: What you are looking for is git submodules. in short you are telling get to look for

How to specify npm dependency as github subfolder url?

回眸只為那壹抹淺笑 提交于 2021-01-02 22:48:29
问题 My git repository: README.md packages common package.json main package.json How to specify common dependency in main package.json as github subfolder url? This does not work "common": "git://github.com/<user>/<project>/packages/common.git" 回答1: It looks like this is not supported by NPM, and the NPM team appears to have no interest in supporting this functionality. https://github.com/npm/npm/issues/2974 回答2: What you are looking for is git submodules. in short you are telling get to look for

个人博客主题美化

烈酒焚心 提交于 2021-01-02 16:54:39
个人博客主题美化 选择主题 Hexo默认的主题是landscape,推荐以下主题: snippet Hiero JSimple BlueLake 详见: https://github.com/search?q=hexo-theme 应用主题 下载主题 将下载好的主题文件夹,粘贴到站点目录的 themes 下。 更改站点配置文件 _config.yml 的theme字段,为主题文件夹的名称: # Extensions## Plugins: https://hexo.io/plugins/## Themes: https://hexo.io/themes/theme: <主题文件夹的名称> 主题优化 以上主题都有比较详细的说明文档,本节主要解决主题优化的常见问题。 主题优化一般包括: 设置「RSS」 添加「标签」页面 添加「分类」页面 设置「字体」 问题:引用国外字体镜像较慢。 解决:可以改用国内的。将\themes*\layout_partials\head external-fonts.swig文件中fonts.google.com改成fonts.lug.ustc.edu.cn。 设置「代码高亮主题」 侧边栏社交链接 问题:图标哪里找? 解决: Font Awesome 开启打赏功能 问题:微信支付宝二维码不美观,规格不一。 解决: 在线生成二维码 设置友情链接 腾讯公益404页面

vue项目打包编译

倖福魔咒の 提交于 2021-01-02 15:34:28
npm安装依赖,可以使用淘宝镜像加速 npm install --registry=https://registry.npm.taobao.org 2. 多环境项目启动 npm run dev 来源: oschina 链接: https://my.oschina.net/u/1156250/blog/4873822

Multiple versions of same peerDependency required

心已入冬 提交于 2021-01-02 06:05:41
问题 When I run npm i on my current react project, I get the following warning regarding react peerDependency: npm WARN react-tap-event-plugin@3.0.3 requires a peer of react@^16.0.0-0 < 16.4.0 but none is installed. You must install peer dependencies yourself. npm WARN react-paginate@4.4.4 requires a peer of react@^15.0.0 but none is installed. You must install peer dependencies yourself. npm WARN formsy-react@0.19.5 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must

Error when trying to install react-redux dependency

久未见 提交于 2021-01-02 05:44:31
问题 I am getting an error trying to install the react-redux package onto my create-react-app application. I have tried deleting and reinstalling my node_modules folder as well as installing it with admin permissions and I am still receiving the same error ➜ frontend git:(main) ✗ npm i react-redux npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree Here is the remaining output from the console npm ERR! npm ERR! While resolving: frontend@0.1.0 npm ERR! Found: react@17.0.1 npm

Error when trying to install react-redux dependency

廉价感情. 提交于 2021-01-02 05:43:53
问题 I am getting an error trying to install the react-redux package onto my create-react-app application. I have tried deleting and reinstalling my node_modules folder as well as installing it with admin permissions and I am still receiving the same error ➜ frontend git:(main) ✗ npm i react-redux npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree Here is the remaining output from the console npm ERR! npm ERR! While resolving: frontend@0.1.0 npm ERR! Found: react@17.0.1 npm