2016-05-20 235 views
1

當運行命令:"C:\Program Files (x86)\nodejs\node.exe" "C:\Users\dule\AppData\Local\Temp\ass2560.tmp"我得到這個錯誤:錯誤:無法找到模塊「少」

Error Output: module.js:339 throw err; ^ Error: Cannot find module 'less' 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:\Users\dule\AppData\Local\Temp\ass2560.tmp:1:74) 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 Function.Module.runMain (module.js:467:10)

回答

1

請確保您有少裝模塊和路徑是作爲附件正確。 enter image description here

3

一個簡單的解決問題的方法是運行命令:

npm install -g less