如何解决npm should be run outside of the node repl, in your normal shell问题
来源:互联网 发布:淘宝宝贝发货地址设置 编辑:程序博客网 时间:2024/06/09 13:45
在windows环境下安装完node,其目录结构下会有一个node.exe文件,运行该工具就相当于在cmd中执行node命令,即进入node开发模式。
但不能在这里执行npm命令,因为npm作为一个独立的模块,其实是另外一个工具。如果此时执行npm install安装命令,node就会抛出 npm should be run outside of the node repl, in your normal shell. 异常。这其实意味着不能在node开发模式中运行npm等命令,而在cmd中可直接运行,比如使用npm全局安装express:
C:\Users\Neo>npm install -g express
补充:在使用npm install安装模块的时候,经常出现卡死的情况,可以使用淘宝NPM镜像来解决此问题,具体可参考:http://npm.taobao.org/
3 0
- 如何解决npm should be run outside of the node repl, in your normal shell问题
- 如何解决npm should be run outside of the node repl,in your normal shell
- npm should be run outside of the node repl, in your normal shell
- npm should be run outside of the node repl, in your normal shell
- You should be the top dog in your department and always keep an eye on the outside world.
- 如何解决Reachability中的Declaration of 'struct sockaddr_in' will not be visible outside of this function
- npm 报错:npm ERR! missing script: start npm ERR! A complete log of this run can be found in: npm ERR!
- npm install之cannot run in wd %s %s (wd=%s)问题及解决
- 75.Your test database is configured to run in NOARCHIVELOG mode. One of the data files in the USERS
- Index was outside the bounds of the array.错误解决
- npm install time出现gyp ERR! stack Error: "pre" versions of node cannot be installed, use the --nodedi
- java编程之Noncompliant; %n should be used in place of \n to produce the platform-specific line separato
- Darkness in the life should never be forgotten!
- Should new index columns be in the key, or included?
- 如何处理qq for linux Dear user.your version of the software will be obsole
- How to Hook the Mouse to Catch Events Outside of your application
- Run Magento Code Outside of Magento
- Compiler compliance level of project HelloSSH should be 5.0 .Your current workspace default csdn
- Java之BufferedInputStream详解 源码分析学习笔记
- 使用Java实现的简易“生产者消费者问题”
- nsenter工具进入docker容器
- 使用Spring Boot快速构建应用
- Android中事件分发机制
- 如何解决npm should be run outside of the node repl, in your normal shell问题
- html class
- Java中的类与对象
- 写给自己,梳理一下我现在对前端知识结构的理解
- 自动释放池详解
- 网络视频直播将给影视界带来重大影响
- Vuforia+Unity AR场景播放音频控制
- 托管代码与非托管代码之间与托管程序
- DOC元素的相关属性