gulp无法找到模块的'可读流/转换' [英] gulp Cannot find module 'readable-stream/transform'

查看:172
本文介绍了gulp无法找到模块的'可读流/转换'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Windows 7中运行gulp时,我得到了这个

 < pre> 
c:\wamp\www\laravel> gulp
module.js:339
throw err;
^

错误:无法在Function.Module._resolveFilename(module.js:337:15)处找到模块'readable-stream / transform'

at Function .Module._load(module.js:287:25)
at Module.require(module.js:366:17)
at require(module.js:385:17)
at对象<匿名> (c:\wamp\www\laravel\\\
ode_modules\laravel-elixir\\\
ode_modules\gulp-util\\\
ode_modules\through2\through2.js:1:79)
at Module (module.js:435:26)
在Object.Module._extensions..js(module.js:442:10)
在Module.load(module.js:356:32)
at Function.Module._load(module.js:311:12)
at Module.require(module.js:366:17)
< / pre>

当我运行

 c:\wamp\ www \ laravel> npm install可读流/转换 - 保存


我得到了这个

 < pre> 

c:\wamp\www\raravel> npm安装可读流/转换 - 保存
npm WARN addRemoteGit错误:命令失败:git -c core.longpaths = true config --get remote.origin.url
NPM WARN addRemoteGit
NPM在ChildProcess.exithandler WARN addRemoteGit(child_process.js:203:12)
NPM WARN addRemoteGit在emitTwo(events.js:87 :13)
npm WARN addRemoteGit at ChildProcess.emit(events.js:172:7)
npm WARN addRemoteGit at maybeClose(internal / child_process.js:818:16)
npm WARN addRemoteGit at Process.ChildProcess._handle.onexit(internal / child_process.js:211:5)
npm WARN addRemoteGit可读流/变换重置远程C:\ Users \\\\\\\\\\\\\\\ -cache\_git-remotes\git-github上-COM可读流变换-GIT-118dcd777892d6f074056363a382a654因为错误的:{[错误:命令失败:GIT中-c core.longpaths =真配置--get remote.origin .url
npm WARN addRemoteGit]
npm WARN addRemoteGit killed:false,
npm WARN addRemoteGit代码:1,
npm WARN addRemoteGit signal:null,
npm WARN addRemoteGit cmd:'git -c core.longpaths = true config - -get remote.origin.url'}
npm ERR! git clone --template = C:\Users\a0455\AppData\Roaming\\\
pm-cache\__git-remotes\_templates --mirror git://github.com/readable-stream/transform。 GIT中C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-github上-COM可读流变换-GIT-118dcd777892d6f074056363a382a654:克隆到bar $ b $是库 'C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-github上-COM-可读流变换混帐118dcd777892d6f074056363a382a654' ...
npm ERR! git clone --template = C:\Users\a0455\AppData\Roaming\\\
pm-cache\__git-remotes\_templates --mirror git://github.com/readable-stream/transform。 GIT中C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-github上-COM可读流变换-GIT-118dcd777892d6f074056363a382a654:致命:远程ER
ror:
npm ERR! git clone --template = C:\Users\a0455\AppData\Roaming\\\
pm-cache\__git-remotes\_templates --mirror git://github.com/readable-stream/transform。 GIT中C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-github上-COM可读流变换-GIT-118dcd777892d6f074056363a382a654:存储库不
发现。
NPM WARN addRemoteGit错误:命令失败:混帐-c core.longpaths = TRUE配置--get remote.origin.url
NPM WARN addRemoteGit
NPM在ChildProcess.exithandler(child_process WARN addRemoteGit。 js:203:12)
npm WARN addRemoteGit at emitTwo(events.js:87:13)
npm WARN addRemoteGit at ChildProcess.emit(events.js:172:7)
npm WARN addRemoteGit在maybeClose(内部/ child_process.js:818:16)
NPM在Process.ChildProcess._handle.onexit WARN addRemoteGit(内部/ child_process.js:211:5)
NPM WARN addRemoteGit可读流/变换复位远程C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-HTTPS的github上-COM可读流变换-GIT-5b2633ac60de63f56f8df5b95ac9a72d因为错误的:{[错误:命令失败:git -c core.longpaths = true config --get remote.origi
n.url
npm WARN addRemoteGit]
npm WARN addRemoteGit killed:false,
npm WARN addRemoteGit代码:1,
npm WARN addRemoteGit signal:null,
npm WARN addRemoteGit cmd:'git -c core.longpaths = true config --get remote.origin.url'}
npm ERR! git clone --template = C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\_templates --mirror https://github.com/readable-stream/transform。 GIT中C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-HTTPS的github上-COM可读流变换-GIT-5b2633ac60de63f56f8df5b95ac9a72d:克隆
成纯仓库 'C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-HTTPS的github上-COM可读流变换-GIT-5b2633ac60de63f56f8df5b95ac9a72d' .. 。
npm ERR! git clone --template = C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\_templates --mirror https://github.com/readable-stream/transform。 GIT中C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-HTTPS的github上-COM可读流变换-GIT-5b2633ac60de63f56f8df5b95ac9a72d:远程:
无效的用户名或密码。
npm ERR! git clone --template = C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\_templates --mirror https://github.com/readable-stream/transform。 GIT中C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-HTTPS的github上-COM可读流变换-GIT-5b2633ac60de63f56f8df5b95ac9a72d:致命:一个
uthentication在'https://github.com/readable-stream/transform.git/'
npm中失败WARN addRemoteGit错误:命令失败:git -c core.longpaths = true config --get remote.origin .url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler(child_process.js:203:12)
npm WARN addTmoteGit at emitTwo(events.js:87:13)
NPM WARN addRemoteGit在ChildProcess.emit(events.js:172:7)
NPM WARN在maybeClose addRemoteGit(内部/ child_process.js:818:16)
NPM WARN在Process.ChildProcess._handle addRemoteGit .onexit(internal / child_process.js:211:5)
npm WARN addR emoteGit可读流/变换复位远程C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-github上-COM可读流变换-GIT-47d9697875e1d858d205c96d8adf2ff0因为错误:{[Error:Command failed:git -c core.longpaths = true config --get remote.origin.url
npm WARN addRemoteGit]
npm WARN addRemoteGit killed:false,
npm WARN addRemoteGit代码:1,
npm WARN addRemoteGit信号:null,
npm WARN addRemoteGit cmd:'git -c core.longpaths = true config --get remote.origin.url'}
npm ERR! git clone --template = C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\_templates --mirror git@github.com:可读流/ transform.git C :\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-github上-COM可读流变换-GIT-47d9697875e1d858d205c96d8adf2ff0:克隆到裸
存储库' C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-github上-COM-可读流变换混帐47d9697875e1d858d205c96d8adf2ff0' ...
NPM呃! git clone --template = C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\_templates --mirror git@github.com:可读流/ transform.git C :\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-github上-COM可读流变换-GIT-47d9697875e1d858d205c96d8adf2ff0:权限被拒绝
(公钥) 。
npm ERR! git clone --template = C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\_templates --mirror git@github.com:可读流/ transform.git C :\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-github上-COM-可读流变换混帐47d9697875e1d858d205c96d8adf2ff0:致命的:可能不属于R
从远程存储库中读取。
npm ERR! git clone --template = C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\_templates --mirror git@github.com:可读流/ transform.git C :\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-github上-COM-可读流变换混帐47d9697875e1d858d205c96d8adf2ff0:
NPM ERR! git clone --template = C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\_templates --mirror git@github.com:可读流/ transform.git C :\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-github上-COM-可读流变换混帐47d9697875e1d858d205c96d8adf2ff0:请确保Ÿ
OU有正确的访问权限
npm ERR! git clone --template = C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\_templates --mirror git@github.com:可读流/ transform.git C :\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-github上-COM可读流变换-git的-47d9697875e1d858d205c96d8adf2ff0:和存储库
存在。
npm ERR! Windows_NT 6.1.7601
npm ERR! argvC:\\Program Files\\\\\\\\\\\\\\\'节点\\\\\\\\\\\\\\\\\\\\\\\\ npm \\\\
ode_modules\\\\
pm\\\\\\\\ npm-cli.jsinstallreadable-stream / transform--save
npm ERR!节点v4.2.2
npm ERR! npm v3.4.0
npm ERR!代码128

npm ERR!命令失败:git -c core.longpaths = true clone --template = C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\_templates --mirror git @ github。 com:readable-stream / transform.git C:\ Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-github-com-readable-stream-transform-git-47d9697875e1d
858d205c96d8adf2ff0
npm ERR!克隆到裸存储库 'C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-github上-COM可读流变换-GIT-47d9697875e1d858d205c96d8adf2ff0' ...
npm ERR!权限被拒绝(publickey)。
npm ERR!致命:无法从远程存储库读取。
npm ERR!
npm ERR!请确保您拥有正确的访问权限
npm ERR!并存在该存储库。
npm ERR!
npm ERR!
npm ERR!如果您需要帮助,您可以在以下位置报告此错误:
npm ERR! < HTTPS://github.com/npm/npm/issues>

npm ERR!请包含以下任何支持请求的文件:
npm ERR! c:\wamp\www\laravel\\\
pm-debug.log
< / pre>

看起来好像是

克隆到裸库 'C:\Users\a0455\AppData\Roaming\\\
pm-cache\_git-remotes\git-github上-COM可读流变换-GIT-47d9697875e1d858d205c96d8adf2ff0' ..
权限被拒绝(publickey)。
致命:无法从远程存储库读取。

请确保您拥有正确的访问权限
并存在存储库。


如果您需要帮助,您可以在以下位置报告此错误:

现在我不知道该怎么做。我需要运行gulp来在laravel中生成样式表。如果有人曾经遇到过这种问题。请帮忙。
,顺便指出,我的节点js版本是3.4.0。 b $ b 3.4.0

非常感谢您

Sura

解决方案使用 npmd 或者只是做

  $ rm -rf node_modules 

$ npm i


when I run gulp in my windows 7 I got this

<pre>
c:\wamp\www\laravel>gulp
module.js:339
    throw err;
    ^

Error: Cannot find module 'readable-stream/transform'
    at Function.Module._resolveFilename (module.js:337:15)
    at Function.Module._load (module.js:287:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (c:\wamp\www\laravel\node_modules\laravel-elixir\node_modules\gulp-util\node_modules\through2\through2.js:1:79)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
</pre>

and when I run

c:\wamp\www\laravel>npm install readable-stream/transform --save

I got this

 <pre>

c:\wamp\www\laravel>npm install readable-stream/transform --save
npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit     at ChildProcess.exithandler (child_process.js:203:12)
npm WARN addRemoteGit     at emitTwo (events.js:87:13)
npm WARN addRemoteGit     at ChildProcess.emit (events.js:172:7)
npm WARN addRemoteGit     at maybeClose (internal/child_process.js:818:16)
npm WARN addRemoteGit     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
npm WARN addRemoteGit  readable-stream/transform resetting remote C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-github-com-readable-stream-transform-git-118dcd777892d6f074056363a382a654 because of error: { [Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit ]
npm WARN addRemoteGit   killed: false,
npm WARN addRemoteGit   code: 1,
npm WARN addRemoteGit   signal: null,
npm WARN addRemoteGit   cmd: 'git -c core.longpaths=true config --get remote.origin.url' }
npm ERR! git clone --template=C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/readable-stream/transform.git C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-github-com-readable-stream-transform-git-118dcd777892d6f074056363a382a654: Cloning into bar
e repository 'C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-github-com-readable-stream-transform-git-118dcd777892d6f074056363a382a654'...
npm ERR! git clone --template=C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/readable-stream/transform.git C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-github-com-readable-stream-transform-git-118dcd777892d6f074056363a382a654: fatal: remote er
ror:
npm ERR! git clone --template=C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/readable-stream/transform.git C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-github-com-readable-stream-transform-git-118dcd777892d6f074056363a382a654:   Repository not
 found.
npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit     at ChildProcess.exithandler (child_process.js:203:12)
npm WARN addRemoteGit     at emitTwo (events.js:87:13)
npm WARN addRemoteGit     at ChildProcess.emit (events.js:172:7)
npm WARN addRemoteGit     at maybeClose (internal/child_process.js:818:16)
npm WARN addRemoteGit     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
npm WARN addRemoteGit  readable-stream/transform resetting remote C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-readable-stream-transform-git-5b2633ac60de63f56f8df5b95ac9a72d because of error: { [Error: Command failed: git -c core.longpaths=true config --get remote.origi
n.url
npm WARN addRemoteGit ]
npm WARN addRemoteGit   killed: false,
npm WARN addRemoteGit   code: 1,
npm WARN addRemoteGit   signal: null,
npm WARN addRemoteGit   cmd: 'git -c core.longpaths=true config --get remote.origin.url' }
npm ERR! git clone --template=C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/readable-stream/transform.git C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-readable-stream-transform-git-5b2633ac60de63f56f8df5b95ac9a72d: Cloning
into bare repository 'C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-readable-stream-transform-git-5b2633ac60de63f56f8df5b95ac9a72d'...
npm ERR! git clone --template=C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/readable-stream/transform.git C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-readable-stream-transform-git-5b2633ac60de63f56f8df5b95ac9a72d: remote:
Invalid username or password.
npm ERR! git clone --template=C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/readable-stream/transform.git C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-readable-stream-transform-git-5b2633ac60de63f56f8df5b95ac9a72d: fatal: A
uthentication failed for 'https://github.com/readable-stream/transform.git/'
npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit     at ChildProcess.exithandler (child_process.js:203:12)
npm WARN addRemoteGit     at emitTwo (events.js:87:13)
npm WARN addRemoteGit     at ChildProcess.emit (events.js:172:7)
npm WARN addRemoteGit     at maybeClose (internal/child_process.js:818:16)
npm WARN addRemoteGit     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
npm WARN addRemoteGit  readable-stream/transform resetting remote C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-github-com-readable-stream-transform-git-47d9697875e1d858d205c96d8adf2ff0 because of error: { [Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit ]
npm WARN addRemoteGit   killed: false,
npm WARN addRemoteGit   code: 1,
npm WARN addRemoteGit   signal: null,
npm WARN addRemoteGit   cmd: 'git -c core.longpaths=true config --get remote.origin.url' }
npm ERR! git clone --template=C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:readable-stream/transform.git C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-github-com-readable-stream-transform-git-47d9697875e1d858d205c96d8adf2ff0: Cloning into bare
repository 'C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-github-com-readable-stream-transform-git-47d9697875e1d858d205c96d8adf2ff0'...
npm ERR! git clone --template=C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:readable-stream/transform.git C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-github-com-readable-stream-transform-git-47d9697875e1d858d205c96d8adf2ff0: Permission denied
(publickey).
npm ERR! git clone --template=C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:readable-stream/transform.git C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-github-com-readable-stream-transform-git-47d9697875e1d858d205c96d8adf2ff0: fatal: Could not r
ead from remote repository.
npm ERR! git clone --template=C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:readable-stream/transform.git C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-github-com-readable-stream-transform-git-47d9697875e1d858d205c96d8adf2ff0:
npm ERR! git clone --template=C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:readable-stream/transform.git C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-github-com-readable-stream-transform-git-47d9697875e1d858d205c96d8adf2ff0: Please make sure y
ou have the correct access rights
npm ERR! git clone --template=C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:readable-stream/transform.git C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-github-com-readable-stream-transform-git-47d9697875e1d858d205c96d8adf2ff0: and the repository
 exists.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\a0455\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "readable-stream/transform" "--save"
npm ERR! node v4.2.2
npm ERR! npm  v3.4.0
npm ERR! code 128

npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git@github.com:readable-stream/transform.git C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-github-com-readable-stream-transform-git-47d9697875e1d
858d205c96d8adf2ff0
npm ERR! Cloning into bare repository 'C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-github-com-readable-stream-transform-git-47d9697875e1d858d205c96d8adf2ff0'...
npm ERR! Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     c:\wamp\www\laravel\npm-debug.log
</pre>

seems like there is

 Cloning into bare repository 'C:\Users\a0455\AppData\Roaming\npm-cache\_git-remotes\git-github-com-readable-stream-transform-git-47d9697875e1d858d205c96d8adf2ff0'...
 Permission denied (publickey).
 fatal: Could not read from remote repository.

 Please make sure you have the correct access rights
 and the repository exists.


 If you need help, you may report this error at:
     

Now I don't know what to do. I need to run gulp to generate style sheet in laravel. if anyone has come across this kind of problem before. Please help. and by the way my node js version is 3.4.0

c:\wamp\www\laravel>npm -v
3.4.0

thank you so much

Sura

解决方案

use npmd or just do

$ rm -rf node_modules

$ npm i

这篇关于gulp无法找到模块的'可读流/转换'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆