cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Custom Visual - Not able to run

Hi all,

I am trying to run the install and run the LineDotChart by Microsoft, but without success. 

When npm install I get the following error messages: 

npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\typedarray-f3f8b705\package.json'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\type-is-7846aae4\package.json'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\typedarray-f3f8b705\LICENSE'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\type-is-7846aae4\HISTORY.md'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\typedarray-f3f8b705\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\type-is-7846aae4\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\type-is-7846aae4\LICENSE'
.
.
.
[Much more rows like this...]
.
.
.
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\tslint-286165b1\lib\rules\completed-docs\exclusionFactory.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\tslint-286165b1\lib\rules\completed-docs\exclusionFactory.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\tslint-286165b1\lib\rules\completed-docs\tagExclusion.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\........\otravez\node_modules\.staging\tslint-286165b1\lib\rules\completed-docs\tagExclusion.js'
npm WARN tar ENOENT: no such file or directory, lstat 'C:\Users\........\otravez\node_modules\.staging\less-0a1e8cab\test\less-bom\errors'
npm WARN tar ENOENT: no such file or directory, lstat 'C:\Users\........\otravez\node_modules\.staging\less-0a1e8cab\test'
npm ERR! path C:\Users\........\AppData\Roaming\npm-cache\_cacache\content-v2\sha512\cd\02\0c3a60bedfbda90bf08254baa7434cd206263b1c7a1d53b9a941d8e265d75e93818c8f7d48ddd509ee002cf68eb95fb9a74666ba3a890e91ce9ff638df06
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall lstat
npm ERR! Error: EPERM: operation not permitted, lstat 'C:\Users\........\AppData\Roaming\npm-cache\_cacache\content-v2\sha512\cd\02\0c3a60bedfbda90bf08254baa7434cd206263b1c7a1d53b9a941d8e265d75e93818c8f7d48ddd509ee002cf68eb95fb9a74666ba3a890e91ce9ff638df06'
npm ERR!  { Error: EPERM: operation not permitted, lstat 'C:\Users\........\AppData\Roaming\npm-cache\_cacache\content-v2\sha512\cd\02\0c3a60bedfbda90bf08254baa7434cd206263b1c7a1d53b9a941d8e265d75e93818c8f7d48ddd509ee002cf68eb95fb9a74666ba3a890e91ce9ff638df06'
npm ERR!   cause:
npm ERR!    { Error: EPERM: operation not permitted, lstat 'C:\Users\........\AppData\Roaming\npm-cache\_cacache\content-v2\sha512\cd\02\0c3a60bedfbda90bf08254baa7434cd206263b1c7a1d53b9a941d8e265d75e93818c8f7d48ddd509ee002cf68eb95fb9a74666ba3a890e91ce9ff638df06'
npm ERR!      errno: -4048,
npm ERR!      code: 'EPERM',
npm ERR!      syscall: 'lstat',
npm ERR!      path: 'C:\\Users\\........\\AppData\\Roaming\\npm-cache\\_cacache\\content-v2\\sha512\\cd\\02\\0c3a60bedfbda90bf08254baa7434cd206263b1c7a1d53b9a941d8e265d75e93818c8f7d48ddd509ee002cf68eb95fb9a74666ba3a890e91ce9ff638df06' },
npm ERR!   stack: 'Error: EPERM: operation not permitted, lstat \'C:\\Users\\........\\AppData\\Roaming\\npm-cache\\_cacache\\content-v2\\sha512\\cd\\02\\0c3a60bedfbda90bf08254baa7434cd206263b1c7a1d53b9a941d8e265d75e93818c8f7d48ddd509ee002cf68eb95fb9a74666ba3a890e91ce9ff638df06\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'lstat',
npm ERR!   path: 'C:\\Users\\........\\AppData\\Roaming\\npm-cache\\_cacache\\content-v2\\sha512\\cd\\02\\0c3a60bedfbda90bf08254baa7434cd206263b1c7a1d53b9a941d8e265d75e93818c8f7d48ddd509ee002cf68eb95fb9a74666ba3a890e91ce9ff638df06',
npm ERR!   parent: 'otravez' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\........\AppData\Roaming\npm-cache\_logs\2019-05-02T06_45_04_871Z-debug.log

 

Then if I try to pbiviz start:

error UNKNOWN TypeError: Path must be a string. Received undefined
at assertPath (path.js:28:11)
at VisualPackage.join (path.js:489:7)
at VisualPackage.buildPath (C:\Users\........\AppData\Roaming\npm\node_modules\powerbi-visuals-tools\lib\VisualPackage.js:115:26)
at Promise (C:\Users\........\AppData\Roaming\npm\node_modules\powerbi-visuals-tools\lib\LessCompiler.js:53:42)
at new Promise (<anonymous>)
at Function.build (C:\Users\........\AppData\Roaming\npm\node_modules\powerbi-visuals-tools\lib\LessCompiler.js:52:16)
at _validateApiVersion.then (C:\Users\........\AppData\Roaming\npm\node_modules\powerbi-visuals-tools\lib\VisualBuilder.js:100:38)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at Function.Module.runMain (module.js:695:11)

 

If I download another custom visual from the Microsoft Git, and do the same steps as above, it works perfect. Could anyone help me with resolving this issue for the LineDotChart visual? Maybe I am doing something wrong?

1 REPLY 1
Microsoft
Microsoft

Re: Custom Visual - Not able to run

Hi,

 

It looks like that problem is in npm cache because I've just successfuly run "npm install" without any artifacts.

Try to clear npm cache please it should help.

 

Kind Regards,

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Come join us today! Find your favorite faces from the community presenting at the Power Platform Community Conference!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Kudoed Authors