npm报错Error: ENOENT, stat 'D:\NodeLearn\node-global'
最近想试下当前的当红炸子鸡 Nodejs,在安装配置时,发生了下面的错误:
C:\nodejs\npmjs\bin>cd .. C:\nodejs\npmjs>cd .. C:\nodejs>npm -v
1.4.28 C:\nodejs>npm config set prefix "D:\NodeLearn\node-global" C:\nodejs>npm config set cache "D:\NodeLearn\node-cache"
Error: ENOENT, stat 'D:\NodeLearn\node-global'
原因是没有手动建立文件夹: node-global 和 node-cache,收到建立文件夹之后,就不报错了。
C:\nodejs>npm config set cache "D:\NodeLearn\node-cache" C:\nodejs>npm config set prefix "D:\NodeLearn\node-global"
然后将 D:\NodeLearn\node-global, C:\nodejs\node_modules 加入系统 path.
安装express:
C:\nodejs>npm install express
express@4.10.7 node_modules\express
├── methods@1.1.1
├── fresh@0.2.4
├── utils-merge@1.0.0
├── merge-descriptors@0.0.2
├── range-parser@1.0.2
├── cookie-signature@1.0.5
├── cookie@0.1.2
├── escape-html@1.0.1
├── finalhandler@0.3.3
├── media-typer@0.3.0
├── vary@1.0.0
├── parseurl@1.3.0
├── serve-static@1.7.2
├── content-disposition@0.5.0
├── path-to-regexp@0.1.3
├── depd@1.0.0
├── qs@2.3.3
├── debug@2.1.1 (ms@0.6.2)
├── on-finished@2.2.0 (ee-first@1.1.0)
├── etag@1.5.1 (crc@3.2.1)
├── send@0.10.1 (ms@0.6.2, destroy@1.0.3, mime@1.2.11, on-finished@2.1.1)
├── accepts@1.1.4 (negotiator@0.4.9, mime-types@2.0.7)
├── type-is@1.5.5 (mime-types@2.0.7)
└── proxy-addr@1.0.4 (forwarded@0.1.0, ipaddr.js@0.1.5) C:\nodejs>
安装百度fis:
C:\nodejs>npm install -g fis
npm ERR! git clone https://github.com/pipobscure/fsevents undefined
npm ERR! git clone https://github.com/pipobscure/fsevents undefined
npm WARN optional dep failed, continuing fsevents@git+https://github.com/pipobscure/fsevents#7dcdf9fa3f8956610fd6f69f72c67bace2de7138
npm WARN optional dep failed, continuing fsevents@0.3.1
D:\NodeLearn\node-global\fis -> D:\NodeLearn\node-global\node_modules\fis\bin\fis
fis@1.8.13 D:\NodeLearn\node-global\node_modules\fis
├── fis-postprocessor-jswrapper@0.0.8
├── fis-command-install@0.0.7
├── fis-packager-map@0.0.9
├── fis-deploy-default@0.0.2
├── colors@0.6.2
├── commander@1.3.2 (keypress@0.1.0)
├── fis-optimizer-clean-css@0.0.9 (clean-css@1.1.7)
├── fis-optimizer-uglify-js@0.1.6 (uglify-js@2.4.15)
├── fis-command-release@0.11.3 (async@0.9.0, chokidar@0.8.4, livereload-server-spec@0.2.3)
├── fis-command-server@0.7.1 (step@0.0.5, chokidar@0.10.5)
├── fis-kernel@2.0.12 (iconv-lite@0.2.10, tar@0.1.17)
├── fis-spriter-csssprites@0.2.5 (node-images@1.5.5)
└── fis-optimizer-png-compressor@0.0.6 (node-pngquant-native@0.0.11, node-pngcrush@0.1.1)
安装报了一个错,但是最终好像还是成功了^_^?
npm报错Error: ENOENT, stat 'D:\NodeLearn\node-global'的更多相关文章
- node 中 npm报错 Error: ENOENT, stat 'C:\Users\Administrator\AppData\Roaming\npm'
今天在看node书本时,安装express,看看里面的包.没想到出现这样一种情况. 报错了.后来思考了一下,可能是修改了node的默认安装路径.于是准备在出错的路径下建一个npm文件夹. 注意,有个时 ...
- npm install报错Error: ENOENT
E:\projects\ueditor\ueditor1_4_3_3-src>npm installError: ENOENT, stat 'C:\Users\Lucas\AppData\Roa ...
- nodejs在spawn中执行npm报错 [Error: spawn ENOENT]” errors
描述: 上代码 var ps = require('child_process').spawn("npm", ['install'], { stdio: 'inherit', cw ...
- Rabbitmq安装报错 Windows下安装RabbitMQ报错Error: unable to connect to node rabbit@xxx: nodedown
1..erlang.cookie文件不一致 如果是Windows 64位系统两个文件都要修改,另外当C:\Users\用户\.erlang.cookie没有修改权限的时候 用上面这个文件覆盖下面两个目 ...
- npm install 报错 error Unexpected end of JSON input while parsing near '...sShrinkwrap":false,"d' 解决办法
npm install 报错 : error Unexpected end of JSON input while parsing near '...sShrinkwrap":false,& ...
- inoic start projectname sidemenu报错 - Error: Cannot find module 'lodash._baseslice'
inoic start projectname sidemenu报错 - Error: Cannot find module 'lodash._baseslice' 在公司的电脑上出现过这个错误,后来 ...
- 安装了nodejs后在命令行运行npm报错
安装了nodejs后在命令行运行npm报错:Error: Cannot find module 'internal/util/types' 解决方法:删除目录“C:\Users\mengxiaobo\ ...
- vue运行报错error:Cannot assign to read only property 'exports' of object '#<Object>'
用weex做项目的时候,npm start 之后一直报错error:Cannot assign to read only property 'exports' of object '#<Obje ...
- npm报错 This is probably not a problem with npm,there is likely additional logging output above可能的原因
npm WARN Local package.json exists, but node_modules missing, did you mean to install? 解决方法: 输入npm i ...
随机推荐
- 网络编程:socket--python核心编程(3),chapter 1
最近两天把第一部分的网络编程socket好好学习了一番,收获也蛮多的... 套接字:能使运行在不同或相同计算机上运行的进行通信:套接字一种是基于文件的(同一台计算机进程间通信),另一种是基于网络的(同 ...
- 第一个sprint总结和读后感
总结:通过第一个sprint的冲刺,了解了sprint的整个流程,学会了在一个团队里该如何开展一个项目和分配任务.我们的队团在第一个sprint中没有达到我们预期的效果,我们也做出了反省,原因一是我们 ...
- 浏览器对象模型(BOM,Browser Object Model)
本文内容 1.概述 2.windows与document 3.对话框 4.定时调用 5.URL解析与访问历史 6.浏览器和屏幕信息 ★概述 &q ...
- [CLR via C#]18. Attribute
attribute可以说是Microsoft .NET Framework提出的最具创意的技术之一了.利用attribute,可以声明性的为自己的代码构造添加注解,从而实现一些特殊的功能.attrib ...
- Azure开发者任务之一:解决Azure Storage Emulator初始化失败
初学Windows Azure: 我打算开始学习Windows Azure.我安装了Azure SDK,然后在“Cloud”标签下选择Windows Azure模板,创建了一个项目,然后又创建了一个W ...
- jquery实现全选功能
主要是模拟一些网页中的表格实现全选功能. <form> 你爱好的运动是: <input type="checkbox" id="Check" ...
- .net reflector激活
1.断网 2. 运行.NET Reflector,点击Help -> Activate 3. 运行注册机,复制注册机生成的序列号,粘贴到.NET Reflector中的激活输入框 4. 点击激活 ...
- C# 实现WinForm窗口最小化到系统托盘代码,并且判断左右鼠标的事件
1.设置WinForm窗体属性showinTask=false 2.加notifyicon控件notifyIcon1,为控件notifyIcon1的属性Icon添加一个icon图标. 3.添加窗体最小 ...
- WebApi传参总动员(二)
上篇,从最简单的string入手.本篇演示了从请求的输入流中获取实体.api: public class ValuesController : ApiController { [HttpPost] p ...
- VS用法总结
工欲善其事,必先利其器,关于VS的“即时窗口”的使用: 打开“即时窗口”的快捷键是:Ctrl + Alt + I. 要在“即时窗口”中打印查看打印输出结果,必须按如下步骤设置:[工具]→[选项]→[调 ...