Tag: npm install

我在使用npm install for angular 2时遇到了麻烦

这是我在cmd提示符下的错误: npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue > angular2-quickstart@1.0.0 postinstall C:\Users\hp\Desktop\angular2-seed > typings install 'typings' is not recognized as an internal or external command, operable program or batch file. npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your […]

sh:1:并发:在npm启动时找不到

我想在我的本地机器上设置angular2,我安装节点和npm,安装npm后,当我做'npm开始'我得到下面的错误 root@sameer-Vostro-2520:/home/sameer/angular2/angular-2-beta-boilerplate# npm start > angular2-boilerplate@1.0.0 start /home/sameer/angular2/angular-2-beta-boilerplate > concurrent "npm run gulp" "npm run lite" sh: 1: concurrent: not found npm ERR! weird error 127 npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian npm ERR! not ok code 0 我们如何解决这个问题? […]

npm取消失败。 错误代码504

我试图实现这个插件称为共享button从npm我运行https://github.com/carrot/share-button 。 然而,在这样做后,等待大约5分钟,我得到以下输出: npm ERR! fetch failed https://registry.npmjs.org/i/-/i-0.3.2.tgz npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 504 ⸨ ░░░░░░░░░░░░░░⸩ ⠇ fetchMetadata: WARN retry will retry, error on last attempt: Error: fetch failed with status code 504 有谁知道为什么会发生这种情况,并绕过它? 谢谢

从git中拉出模块后,npm运行脚本

我有一个源代码在Git仓库(GitHub)中的Node模块。 我可以使用NPM将模块安装到Git的NPM项目中: npm install –save git@github.com:user/example.git 问题是在拉取源代码之后需要完成一些构build步骤。 我不想在Git中包含构build的结果,因为它们是构build步骤的人工制品,而不是真正的源代码。 目前,我需要手动移动到目录( cd ./node_modules/example )然后运行构build脚本( npm run build ),但是这是一个麻烦。 由于一切都在NPM,这可以自动化吗?

NPM失败github分支依赖

我有我的package.json当前依赖项: "gulp": "github:gulpjs/gulp#4.0", 这已经工作了一段时间,但突然间,我得到以下错误: λ npm i 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:206:12) npm WARN addRemoteGit at emitTwo (events.js:106:13) npm WARN addRemoteGit at ChildProcess.emit (events.js:191:7) npm WARN addRemoteGit at maybeClose (internal/child_process.js:852:16) npm WARN addRemoteGit at Socket.<anonymous> (internal/child_process.js:323:11) npm WARN addRemoteGit […]

NPM错误,同时安装angular度cli

我正在尝试重新安装angular-cli工具以获取最新版本。 在安装之前,我确实升级了优雅的fs,强韧的cookies和lodash。 现在,当我尝试安装angular度cli全球它给了我这个错误: (node: 7736) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit 我很惊讶,因为它没有发生过。 我无法安装该版本的angular度cli。 我试图重新安装NodeJS 6.6.0。 此外,我试图谷歌的问题,但没有什么对我有用。 听到类似stream行的听众的问题,我感到惊讶。 在安装结束时,我得到这些错误: npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\Flyrell\AppData\Roaming\npm\node_mo dules\angular-cli' -> 'C:\Users\Flyrell\AppData\Roaming\npm\node_modules\.angular-cli.DELETE' npm ERR! at moveAway (C:\Users\Flyrell\AppData\Roaming\npm\node_modules\npm\lib\install\action\f inalize.js:38:5) npm ERR! at destStatted (C:\Users\Flyrell\AppData\Roaming\npm\node_modules\npm\lib\install\actio n\finalize.js:27:7) npm ERR! at FSReqWrap.oncomplete […]

NPM问题:npm ERR! 无法parsingjson npm ERR! 没有数据,1:1的空input

我试图在我的本地运行一个项目。我已经在我的电脑中安装了npm和nodejs,并尝试设置项目。 当我第一次运行npm install时出现了这些问题。 错误消息是: npm ERR! Linux 3.13.0-24-generic npm ERR! argv "/usr/bin/nodejs" "/home/aaa/bin/npm" "install" npm ERR! node v4.4.5 npm ERR! npm v2.15.5 npm ERR! file /home/aaa/.npm/asynckit/0.4.0/package/package.json npm ERR! code EJSONPARSE npm ERR! Failed to parse json npm ERR! No data, empty input at 1:1 npm ERR! npm ERR! ^ npm ERR! File: /home/aaa/.npm/asynckit/0.4.0/package/package.json npm ERR! […]

通过npm安装copay返回:无法运行wd%s%s(wd =%s)

我执行一个npm install为sudo安装copay bitcopay但对于一些读取,我得到这个错误。 $ sudo npm install Password: npm WARN lifecycle copay@2.7.0~preinstall: cannot run in wd %s %s (wd=%s) copay@2.7.0 bower install /Users/Jarvis/Documents/Projects/copay npm WARN lifecycle copay@2.7.0~postinstall: cannot run in wd %s %s (wd=%s) copay@2.7.0 npm run build /Users/Jarvis/Documents/Projects/copay copay@2.7.0 /Users/Jarvis/Documents/Projects/copay 我没有find解决这个问题的好方法。 有人有一个想法来解决它?

我如何直接在我的项目中使用npm模块?

我以前从来没有用过npm ,所以我可能不会问这个问题应该如何提问,但是我无法在任何地方find这个信息。 假设我对使用这个模块感兴趣。 作者要求我通过在命令行input以下内容来安装我所做的模块。 npm install –save critical 那之后我迷路了。 作者写了一堆线,但我不知道把它们放在哪里。 var critical = require('critical'); 和 critical.generate({ inline: true, base: 'test/', src: 'index.html', dest: 'index-critical.html', width: 1300, height: 900 }); 我在哪里把这个代码,我怎么运行它。 我试图创build一个名为criticaldemo.js的文件,并将所有这些代码放在那里,但是通过命令行运行它什么也不做。 通过命令行运行它我使用了下面的命令: $ criticalfile.js 任何人都可以请帮我理解如何使用npm模块?

ReactJS + NodeJS:什么是错误“传递 – 更新二进制重新安装或 – build立从源代码重新编译”?

我将另一台计算机的ReactJS + NodeJS项目转移到了新计算机上。 然后在文件夹中,我做了npm install在terminal,但得到以下回应。 > fsevents@1.0.14 install /Users/Joshua/Projects/practice_project/node_modules/fsevents > node-pre-gyp install –fallback-to-build [fsevents] Success: "/Users/Joshua/Projects/practice_project/node_modules/fsevents/lib/binding/Release/node-v46-darwin-x64/fse.node" already installed Pass –update-binary to reinstall or –build-from-source to recompile 而在前一台电脑上,我通过npm run server了该项目,但是当我在新计算机的项目中npm run server之后,现在我得到了: > practice_project@1.0.0 serve /Users/Joshua/Projects/practice_project > nodemon server/server.js –ignore components sh: nodemon: command not found npm ERR! Darwin 15.6.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" […]