我从我的 node 应用程序中收到此错误:
ENOENT, no such file or directory '~/Desktop/MyApp/newversion/partials/navigation.jade'
我知道文件就在那里,因为当我try 使用复制和粘贴的精确路径打开文件时,它是有效的.
我从我的 node 应用程序中收到此错误:
ENOENT, no such file or directory '~/Desktop/MyApp/newversion/partials/navigation.jade'
我知道文件就在那里,因为当我try 使用复制和粘贴的精确路径打开文件时,它是有效的.
Tilde expansion is a shell thing. Write the proper pathname (probably /home/
yourusername/Desktop/etcetcetc
) or use
process.env.HOME + '/Desktop/blahblahblah'