如何解决npm should be run outside of the node repl,in your normal shell
2017-06-14 22:13
405 查看
产生这个错误的原因是你将npm命令运行在node环境下,其实npm 是一个独立的独立的模块,他是另外一个工具,和node是同一个级别的。
在node环境下运行npm install都会抛出这个错误。要运行npm命令必须在系统的shell中,比如windows就是cmd.所以要运行npm命令必须直接在cmd里运行。
node自带的叫repl.
在node环境下运行npm install都会抛出这个错误。要运行npm命令必须在系统的shell中,比如windows就是cmd.所以要运行npm命令必须直接在cmd里运行。
node自带的叫repl.
相关文章推荐
- 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
- TypeError: view must be a callable or a list/tuple in the case of include().解决办法
- opencv中关于图像图像处理时出现Bad argument (Array should be the cvMat or IplImage) in unknown function ……错误的解决办法
- "Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased."
- ltib cannot be run because one or more of the host packages 解决方法参考
- 如何处理qq for linux Dear user.your version of the software will be obsole
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved
- It is not possible to run two different versions of ASP.NET in the same IIS process.问题的解决
- In order to run a trace against SQL Server you must be a member of sysadmin fixed server role or have the ALTER TRACE permission.
- Tomorrow I will fly......but I will return in the future, of course, to be by your side
- nginx -t "nginx: [warn] only the last index in "index" directive should be absolute in 6 "的问题解决
- 如何调整Dreamhost主机PHP上传尺寸的限制/How to change the maximal size of uploading in your Dreamhost
- You cannot run the non-logged version of bulk copy in this database. Please check with the DBO. 问题的解决方法
- PowerShell: 如何解决File **.ps1 cannot be loaded because the execution of scripts is disabled on this system.
- You cannot run the non-logged version of bulk copy in this database问题的解决方法