Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

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
v-evelk
Microsoft Employee
Microsoft Employee

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
[email protected]

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors