I am trying to follow the given steps in https://github.com/Microsoft/PowerBI-visuals-docs/blob/master/tools/README.md# installation to create my custom visuals in PowerBI.
I installed nodeJS 4.0+ and trying to install powerbi-visual-tools with the command npm install -g powerbi-visuals-tools. To confirm it was installed correctly we can run the command pbviz without any parameters which should display the help screen. But i am getting an error in my cmd
C:\>pbiviz
C:\Users\code1234\AppData\Roaming\npm\node_modules\powerbi-visuals-tools\bin\pbiviz.js:30
let exec = require('child_process').execSync;
^^^
SyntaxError: Unexpected strict mode reserved word
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
C:\>
Can any one help me in moving to the next steps in the PowerBI Visual Tools (pbiviz) - Installation
Related
I'm using nodeclipse plugin in eclipse to start working with nodejs and expressjs ,but when i create expressjs project and try run app.js file i get this error
/home/ali/node_modules/express/lib/express.js:99
throw new Error('Most middleware (like ' + name + ') is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.');
^
Error: Most middleware (like favicon) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.
at Function.Object.defineProperty.get (/home/ali/node_modules/express/lib/express.js:99:13)
at Object.<anonymous> (/home/ali/node-WS/express01/app.js:18:16)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.runMain (module.js:575:10)
at run (bootstrap_node.js:352:7)
at startup (bootstrap_node.js:144:9)
How can i fix this problem?
This means You have to install module separately. Maybe you're using latest version of expressJS.
installing modules separately will solve your problem!
I recently installed node-webgl in node.js server. Along with that it's dependencies node-glfw is installed automatically. I have also installed node-gyp.
However, when I try to run a program of either node-webgl or node-glfw I am facing error. Below is the error message:
C:\Users\z003npra>cd C:\Users\z003npra\Desktop\node\node_modules\node-webgl\examples
C:\Users\z003npra\Desktop\node\node_modules\node-webgl\examples>node wavefront.js
C:\Users\z003npra\Desktop\node\node_modules\bindings\bindings.js:83
throw e
^
Error: The specified module could not be found.
\\?\C:\Users\z003npra\Desktop\node\node_modules\node-webgl\build\Release\webgl.node
at Error (native)
at Object.Module._extensions..node (module.js:434:18)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at bindings(C:\Users\z003npra\Desktop\node\node_modules\bindings\bindings.js:76:44)
at Object.<anonymous> (C:\Users\z003npra\Desktop\node\node_modules\node-webg
l\lib\webgl.js:1:108)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
C:\Users\z003npra\Desktop\node\node_modules\node-webgl\examples>
This error is similar issue faced by a person quoted in the link: https://github.com/mikeseven/node-webgl/issues/47
I tried some possible solutions mentioned here, but issue is not getting solved.
It's working for the node.js version v4.5.0. But not working for node.js v4.4.6.
I've been going through a tutorial for setting up a self hosted version of Mozilla Open Badges using this guide https://github.com/mozilla/openbadges-badgekit/wiki/BadgeKit-Self-Hosting-Guide
I've come across many problems with it, under a Windows 7 environment. Some of these I've been able to fix as I've gone along, e.g. setting environment variables and installing other software as required. There is a lot of stuff that the guide doesn't specifically mention, but that's just a learning curve I guess.
However when I've got towards the end of the tutorial and am trying to run 'openbadges-badgekit' it fails. I get this error and haven't been able to find a fix:
C:\xampp\htdocs\openbadges-badgekit\app>node index.js
module.js:339
throw err;
^
Error: Cannot find module '../build/Release/nodeproxy.node'
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. (C:\xampp\htdocs\openbadges-badgekit\node_modules\clie
nt-sessions\node_modules\node-proxy\lib\node-proxy.js:1:90)
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)
at require (module.js:385:17)
Does anyone know how to resolve this? I've done npm install and all the other steps of the tutorial.
Environment:
Windows 7 (Microsoft Windows [Version 6.1.7601])
npm 2.14.7
node v4.2.3
I've been trying to get my app running for a few days now, but keep getting errors. I'm closer than I have been so far, but am now getting the "Cannot find module error" when trying to launch my application.
Below is the error I'm getting now.
C:\MY-APP\dataService>node dataAPI.js
module.js:338
throw err;
^
Error: Cannot find module 'ms'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (C:\MY-APP\node_modules\express\node_modules\debug
\debug.js:14:20)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
I also searched the forums for an answer to this question and found this post on Stack Overflow, but it was in reference to Azure, which I'm not using.
I'm new to Node.js so forgive me if I sound like I don't know what I'm talking about because that's largely the truth.
please see this Link :
https://www.npmjs.com/package/ms
and use :
npm install ms -S
on your project its automatically save ms package to the node-module.
Just in case the above answer doesn't work for someone with this problem: I had this same problem when trying to run tests using the Puppeteer framework. I ended up having to cd into the node_modules/puppeteer folder and manually running npm install for it to finally work in my case.
I'm getting the error ERROR: Cannot find module './lib/base/events' when trying to run Ghost 0.5.0.
I keep uninstalling and installing events even with the -g flag, but it doesn't pick it up. I'm stuck here and don't know what else to do.
more info:
Error: Cannot find module './lib/base/events'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Bookshelf.initialize (/usr/share/nginx/www/lm-ghost-0.5/node_modules/bookshelf/bookshelf.js:28:16)
at Bookshelf (/usr/share/nginx/www/lm-ghost-0.5/node_modules/bookshelf/bookshelf.js:10:31)
at Object.<anonymous> (/usr/share/nginx/www/lm-ghost-0.5/core/server/models/base.js:24:18)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
SO, I installed the bookshelf module manually but now get another error:
/usr/share/nginx/www/lm-ghost-0.5/node_modules/downsize/node_modules/xregexp/xregexp-all.js:1396
L: "0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Wow, OK, now I installed xregexp manually and moving along...
Just for the record, anybody else comes across this issue, I had to basically watch out for any error and whenever I saw node_modules/XXX I simply manually installed module XXX and continued to do so for all errors until it worked.