问题标签 [npm]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
167 浏览

node.js - 柔术没有“帮助”方法/ Nodejitsu 不行吗?

我使用以下命令安装了 jitsu: sudo npm jitsu -g 它似乎已经正确安装,但是在运行命令 jitsu 时出现以下错误:
*/usr/local/lib/node_modules/jitsu/lib/jitsu/commands/help。 js:101 winston.help(''); TypeEror: Object #<Object> has no method 'help'*....... 你明白了。

所有其他 jitsu 命令都以 not ok 结尾。

Nodejs 版本:v0.4.11
npm:v1.0.27

0 投票
1 回答
999 浏览

npm - npm 不默认本地安装到 ./node_modules

当我尝试进行本地安装(例如npm install socket.io)时,它会将模块放入~/src/node_modules/文件夹中。npm root也报告此文件夹。在一些睡眼惺忪的深夜会议期间,我一定搞砸了 npm 的设置,但我不知道如何将其设置./node_modules为默认值。任何人都知道我搞砸了什么,以及如何将其设置回默认值?

更新

我已经尝试过npm config set root ./node_modules,但npm root仍以~/src/node_modulesroot 身份报告。我还检查了 .bash_profile 并且没有在其中进行与节点相关的设置。

0 投票
1 回答
4891 浏览

node.js - 在 express 项目中使用 TinyMCE 的最佳方式是什么?

我正在做一个可能需要 TinyMCE 的快递项目,在快递项目中使用 TinyMCE 的最佳方式是什么?我是否只是按照安装说明进行操作,是否有我应该遵循的特殊模块或一组说明?我搜索了谷歌、tinymce 论坛,并在这里使用以下搜索词 nodejs、express、tinymce。有人可以指出我正确的方向吗?谢谢您的考虑。

0 投票
2 回答
2750 浏览

node.js - 使用 nave 和 Node.js 的 NPM 基础知识

我最近安装了 node.js,并被告知 express 是路由和设置 Web 应用程序开发的方法。

我安装了最新版本的 node 显然与最新的 express 不兼容。

我查了一下,发现 nave... 和 RVM 一样,nave 允许你切换节点的版本。所以我跑了nave.sh install 0.4.11...那成功了,我能跑了。

我认为,应该全局安装 express。所以我跑:

这创造了

然后我

我明白了

错误:找不到模块“快递”

这是通常的行为吗?

由于 express 在packages.json中,如果我运行npm install -d,它将在我的应用程序中创建一个 node_modules 目录,而不仅仅是指向节点路径中 node_modules 的符号链接。

0 投票
1 回答
3277 浏览

node.js - 节点 npm 本地安装覆盖全局安装

如果我在本地安装了节点模块(与我的节点应用程序位于同一文件夹中),它们会覆盖相同模块的全局安装吗?

0 投票
5 回答
6520 浏览

linux - Error installing NPM for node.js

I'm trying to install npm on ubuntu 11.04 using the "git all the way" method found in this gist

I keep getting this error after running sudo make install on npm

I know this is something wrong with bash, but I'm not very good with bash.

EDIT

running the node command in the terminal brings up the node shell as expected

0 投票
1 回答
513 浏览

ubuntu - Error after installing NPM for node.js

After installing npm I get the following error report

I have installed node and npm using the method outlined in this gist using the "git all the way method". However I changed the directory locations for the npm and node repos.

It is set up like so

Does anyone know what's going wrong here.

EDIT

Bash history

0 投票
2 回答
3983 浏览

node.js - NPM 在查找我的节点路径时一直遇到问题

这是我尝试安装 Node-Proxy 的示例,因为 NowJS 需要它:

sudo npm install node-proxy

0 投票
30 回答
496169 浏览

node.js - 有没有办法让 npm install (命令)在代理后面工作?

阅读.npmrc文件中的代理变量,但它不起作用。尽量避免手动下载所有需要的包并安装。

0 投票
14 回答
183877 浏览

node.js - 您可以为您的组织托管一个私有存储库以与 npm 一起使用吗?

Npm 听起来像是一个在组织内使用的好平台,很好奇是否可以使用私有 repo,比如 Nexus/Maven。谷歌上什么都没有:(