• win10安装express遇到的问题。


    昨天在centos上成功安装了express,今天想在win10上面装一个,死活安装不了

    express可以正常安装,但是每次安装express-generator的时候一直报错

    659 silly install printInstalled
    660 verbose stack Error: EISDIR: illegal operation on a directory, open 'D:Program Files odejs ode_globalexpress'
    660 verbose stack at Error (native)
    661 verbose cwd C:Usersmimig
    662 error Windows_NT 10.0.14393
    663 error argv "D:\Program Files\nodejs\node.exe" "D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "express-generator" "-g"
    664 error node v6.10.1
    665 error npm v3.10.10
    666 error path D:Program Files odejs ode_globalexpress
    667 error code EISDIR
    668 error errno -4068
    669 error syscall open
    670 error eisdir EISDIR: illegal operation on a directory, open 'D:Program Files odejs ode_globalexpress'
    671 error eisdir This is most likely not a problem with npm itself
    671 error eisdir and is related to npm not being able to find a package.json in
    671 error eisdir a package you are trying to install.
    672 verbose exit [ -4068, true ]

    环境变量什么的也设置了:

    NODE_PATH=xxx/node_global/node_modules

    PATH=xxx/node_global

    还是安装不了。

    后来把node_global删了,重新安装。

    这次我先安装express-gennerator

    后安装express

    居然好了。

    最后运行 #express firstapp

    进项目之后运行# npm start启动,然后提示缺少各种模块

    这次需要运行命令安装依赖

    #npm install 

     终于成功了!!!

    (昨天centos上什么都安装齐全了,就是提示express command not fount,后来才知道是环境变量path里面需要指定全局模块的bin目录,添加上之后就没问题了。)

  • 相关阅读:
    华为交换机S5700设置远程ssh telnet登录
    华为交换机S5700 vty 0 4
    OpenStack--Cinder(G版)中的volume type
    nova volume-create的使用
    druid监控配置
    2PC之JTA原理与实现
    线上服务内存OOM问题定位
    分布式系统事务一致性解决方案
    Spring MVC异常统一处理的三种方式
    Git回滚到历史节点(SourceTree篇)
  • 原文地址:https://www.cnblogs.com/miaodi/p/6617467.html
Copyright © 2020-2023  润新知