[英]How can i run “node index.js” in ubuntu
This has been created in windows environment how can run it into a ubuntu environment. 这是在Windows环境中创建的,如何将其运行到ubuntu环境中。
stayinc/server$ node index.js util.js:538 ctor.prototype = Object.create(superCtor.prototype, { ^ TypeError: Cannot read property 'prototype' of undefined at Object.exports.inherits (util.js:538:43) at Object. (/media/subhasis/3C92D33592D2F27E/LocalProject/stayinc/server/node_modules/mongodb/lib/gridfs-stream/download.js:46:6) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:362:17) at require (module.js:378:17) at Object. (/media/subhasis/3C92D33592D2F27E/LocalProject/stayinc/server/node_modules/mongodb/lib/gridfs-stream/index.js:2:30) at Module._compile (module.js:449:26)
在运行“ node index.js”之前是否运行了以下命令?
npm install
It must be an issue with an outdated version of node.js
. 过期版本的
node.js
一定是一个问题。
You could check the current version by typing in 您可以通过输入以下内容检查当前版本
node -v
I suppose it would output something like 0.8
, which is pretty old. 我想它会输出类似
0.8
东西,这已经很旧了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.