zoukankan      html  css  js  c++  java
  • npm

    npm install 安装依赖

    npm run dev  编译js,css等

    npm run production 优化

    npm run watch-poll 监听(相当于前两句的合并)

    npm verufy cache 清楚缓存

    npm config set registry "https://registry.npmjs.com/"  设置npm的下载源

    npm install --ignore-engines  忽略版本安装依赖

    问题:

    npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/react-is (over 30000ms)

    Sounds like you have a slow connection. Try increasing the timeout from 30s to 60s by adding this to your .npmrc file:( C:UsersAdministrator.npmrc)

    timeout=60000
    

    You could also try adding

    prefer-offline=true

    npm install时报以下错误

    Error: EPERM: operation not permitted, unlink 'E:phpstudy_proWWWminisoapi2 ode_modules.node-sass.DELETEvendorwin32-x64-57inding.node'
    npm ERR! errno: -4048,
    npm ERR! code: 'EPERM',
    npm ERR! syscall: 'unlink',

    
    

    yarn install --ignore-engine  可以解决以上问题,前提是已经安装了yarn




    npm安装时有报错问题可以到这里查看https://www.e-learn.cn/tag/npm-install

     

    踩过这个坑,还有下一个坑等着你,这一路就是给自己填坑,坑填多了,也就习惯了,直到这一路平坦了,也就无怨无悔了。
  • 相关阅读:
    python 网络爬虫(三)
    python 网络爬虫(二)
    python 网络爬虫(一)
    python 爬虫原理
    (转)栈的生长方向
    CRC校验
    extern关键字
    E
    The Super Powers UVA
    V
  • 原文地址:https://www.cnblogs.com/xiaofeilin/p/13476441.html
Copyright © 2011-2022 走看看