我的节点应用程序在我的macbook上运行良好,但当我发布到Rackspace上的服务器时,我得到了以下我从未见过的错误(敏感路径替换为...):
[...]/node_modules/jsdom/node_modules/contextify/lib/contextify.js:7
var ctx = new ContextifyContext(sandbox);
^
TypeError: undefined is not a function
at Contextify ([...]/node_modules/jsdom/node_modules
我已经进入NodeJS 1小时了,所以请容忍我。我的项目需要的包之一是JSDom。在推动了大部分互联网之后,我发现JSDOm有一个名为contextify的依赖项,它是在JSDom安装本身中处理的。所以我就是这么做的:
sudo npm install jsdom
一切都很顺利,直到我得到以下信息:
gyp WARN install got an error, rolling back install
gyp ERR! rebuild error Error: EACCES, stat '/root/.node-gyp/0.8.2'
gyp ERR! not ok
npm E
我一直在尝试使用total.js和D3来创建树的可视化效果。我无法下载D3。我有:
npm install D3
我得到了:
npm ERR! contextify@0.1.8 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.8 install script.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm its
我正在尝试安装僵尸js,并得到以下错误:
> contextify@0.1.8 install
C:\Users\User\Documents\ArbeitPhilipp\clieman\billing\node_modules\zombie\node_modules\jsdom\node_modules\contextify
> node-gyp rebuild
Das System kann den angegebenen Pfad nicht finden.
C:\Users\User\Documents\ArbeitPhilipp\clieman\billing\nod
我最近使用指出,当您在一个V8上下文中使用文字正则表达式语法时,即使您在上下文之间共享全局RegExp对象,instanceof RegExp也会返回false。
var Contextify = require('contextify');
var ctx = Contextify({ RegExp:RegExp, app: anExpressApp });
// When you create a new route, Express checks if the argument is an
// `instanceof RegExp`, and assumes it i
我做的NPM安装在windows-7和我不知道我为什么要得到这个错误。
C:\xampp\htdocs\dev4\nodejs\node_modules\jsdom\node_modules\contextify>node "C:\
Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules
\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time.
我似乎无法在npm/node的最新版本上安装jquery。下面是堆栈跟踪:
npm http GET https://registry.npmjs.org/jquery
npm http 304 https://registry.npmjs.org/jquery
npm http GET https://registry.npmjs.org/jsdom
npm http GET https://registry.npmjs.org/htmlparser/1.7.6
npm http GET https://registry.npmjs.org/xmlhttprequest
npm http G
在将NodeJS更新为v0.10.29之后,我得到了以下错误:
Error: Module version mismatch. Expected 11, got 1.
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at bindings (/home/masiar/usi_liquid_streams/node_m
我正在安装jsdom。我正在关注,但我得到了:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform
.Targets(23,7): error MSB8007: The Platform for project 'contextify.vcxproj' is
invalid. Platform='x64'. You may be seeing this message because you are tryin
g to build a project